diff options
author | kobewi <kobewi4e@gmail.com> | 2022-11-23 00:14:08 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-02-19 21:34:45 +0100 |
commit | a031911c828da4f6f93950afa0688ac062bc96bd (patch) | |
tree | 67c9e6adbc28186ae60bff4afcb2ba2ece47bd59 /editor/import_dock.cpp | |
parent | 0246230e2b7c542f003c3c53cffc22dedc0c9c50 (diff) | |
download | redot-engine-a031911c828da4f6f93950afa0688ac062bc96bd.tar.gz |
Use check_changed_settings_in_group() everywhere
Diffstat (limited to 'editor/import_dock.cpp')
-rw-r--r-- | editor/import_dock.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/import_dock.cpp b/editor/import_dock.cpp index 0ceece263c..47572a991c 100644 --- a/editor/import_dock.cpp +++ b/editor/import_dock.cpp @@ -37,6 +37,7 @@ #include "editor/editor_string_names.h" #include "editor/editor_undo_redo_manager.h" #include "editor/themes/editor_scale.h" +#include "editor/themes/editor_theme_manager.h" class ImportDockParameters : public Object { GDCLASS(ImportDockParameters, Object); @@ -656,7 +657,9 @@ void ImportDock::_replace_resource_in_object(Object *p_object, const Ref<Resourc void ImportDock::_notification(int p_what) { switch (p_what) { case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { - imported->add_theme_style_override("normal", get_theme_stylebox(SNAME("normal"), SNAME("LineEdit"))); + if (EditorThemeManager::is_generated_theme_outdated()) { + imported->add_theme_style_override("normal", get_theme_stylebox(SNAME("normal"), SNAME("LineEdit"))); + } } break; case NOTIFICATION_ENTER_TREE: { |