| 688 | } |
| 689 | |
| 690 | void ScriptTextEditor::update_settings() { |
| 691 | code_editor->get_text_editor()->set_gutter_draw(connection_gutter, EDITOR_GET("text_editor/appearance/gutters/show_info_gutter")); |
| 692 | if (EDITOR_GET("text_editor/appearance/enable_inline_color_picker")) { |
| 693 | code_editor->get_text_editor()->set_inline_object_handlers( |
| 694 | callable_mp(this, &ScriptTextEditor::_inline_object_parse), |
| 695 | callable_mp(this, &ScriptTextEditor::_inline_object_draw), |
| 696 | callable_mp(this, &ScriptTextEditor::_inline_object_handle_click)); |
| 697 | } else { |
| 698 | code_editor->get_text_editor()->set_inline_object_handlers(Callable(), Callable(), Callable()); |
| 699 | } |
| 700 | code_editor->update_editor_settings(); |
| 701 | } |
| 702 | |
| 703 | bool ScriptTextEditor::is_unsaved() { |
| 704 | const bool unsaved = |
nothing calls this directly
no test coverage detected