Remove duplicate editor settings definitions
This commit is contained in:
parent
92615be68c
commit
2057ea2883
20 changed files with 48 additions and 51 deletions
|
|
@ -647,8 +647,8 @@ void LineEdit::_notification(int p_what) {
|
|||
#ifdef TOOLS_ENABLED
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
if (Engine::get_singleton()->is_editor_hint() && !get_tree()->is_node_being_edited(this)) {
|
||||
set_caret_blink_enabled(EDITOR_DEF("text_editor/appearance/caret/caret_blink", false));
|
||||
set_caret_blink_speed(EDITOR_DEF("text_editor/appearance/caret/caret_blink_speed", 0.65));
|
||||
set_caret_blink_enabled(EDITOR_GET("text_editor/appearance/caret/caret_blink"));
|
||||
set_caret_blink_speed(EDITOR_GET("text_editor/appearance/caret/caret_blink_speed"));
|
||||
|
||||
if (!EditorSettings::get_singleton()->is_connected("settings_changed", callable_mp(this, &LineEdit::_editor_settings_changed))) {
|
||||
EditorSettings::get_singleton()->connect("settings_changed", callable_mp(this, &LineEdit::_editor_settings_changed));
|
||||
|
|
@ -1944,8 +1944,8 @@ PopupMenu *LineEdit::get_menu() const {
|
|||
|
||||
void LineEdit::_editor_settings_changed() {
|
||||
#ifdef TOOLS_ENABLED
|
||||
set_caret_blink_enabled(EDITOR_DEF("text_editor/appearance/caret/caret_blink", false));
|
||||
set_caret_blink_speed(EDITOR_DEF("text_editor/appearance/caret/caret_blink_speed", 0.65));
|
||||
set_caret_blink_enabled(EDITOR_GET("text_editor/appearance/caret/caret_blink"));
|
||||
set_caret_blink_speed(EDITOR_GET("text_editor/appearance/caret/caret_blink_speed"));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue