diff options
author | toger5 <toger5@hotmail.de> | 2017-08-31 16:58:43 +0200 |
---|---|---|
committer | toger5 <toger5@hotmail.de> | 2017-08-31 16:58:43 +0200 |
commit | 85cc4e823e989f5dc4cc69ec3eb2e4f81026b95f (patch) | |
tree | 2e3cafde00123972e2974890b9a8f56f01b13471 | |
parent | 41e1bbd30c1e6db57e3fbbc037f6ce4645e20fb9 (diff) |
fixed update import label in importer dock
-rw-r--r-- | editor/import_dock.cpp | 9 | ||||
-rw-r--r-- | editor/import_dock.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/editor/import_dock.cpp b/editor/import_dock.cpp index 0a54b2956a..a60f5d7294 100644 --- a/editor/import_dock.cpp +++ b/editor/import_dock.cpp @@ -351,6 +351,15 @@ void ImportDock::_reimport() { EditorFileSystem::get_singleton()->emit_signal("filesystem_changed"); //it changed, so force emitting the signal } +void ImportDock::_notification(int p_what) { + switch (p_what) { + + case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { + + imported->add_style_override("normal", get_stylebox("normal", "LineEdit")); + } break; + } +} void ImportDock::_bind_methods() { ClassDB::bind_method(D_METHOD("_reimport"), &ImportDock::_reimport); diff --git a/editor/import_dock.h b/editor/import_dock.h index 12140ce647..029c458320 100644 --- a/editor/import_dock.h +++ b/editor/import_dock.h @@ -65,6 +65,7 @@ class ImportDock : public VBoxContainer { protected: static void _bind_methods(); + void _notification(int p_what); public: void set_edit_path(const String &p_path); |