fixed update import label in importer dock
This commit is contained in:
parent
41e1bbd30c
commit
85cc4e823e
2 changed files with 10 additions and 0 deletions
|
@ -351,6 +351,15 @@ void ImportDock::_reimport() {
|
||||||
EditorFileSystem::get_singleton()->emit_signal("filesystem_changed"); //it changed, so force emitting the signal
|
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() {
|
void ImportDock::_bind_methods() {
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("_reimport"), &ImportDock::_reimport);
|
ClassDB::bind_method(D_METHOD("_reimport"), &ImportDock::_reimport);
|
||||||
|
|
|
@ -65,6 +65,7 @@ class ImportDock : public VBoxContainer {
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
void _notification(int p_what);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void set_edit_path(const String &p_path);
|
void set_edit_path(const String &p_path);
|
||||||
|
|
Loading…
Reference in a new issue