1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

More icon updates on theme change

(cherry picked from commit 0ac6e6acbe)
This commit is contained in:
Haoyu Qiu
2022-03-15 23:05:12 +08:00
committed by Rémi Verschelde
parent 8db39b82ea
commit 8eb539d5c1
3 changed files with 22 additions and 15 deletions

View File

@@ -39,15 +39,11 @@ void ResourcePreloaderEditor::_gui_input(Ref<InputEvent> p_event) {
}
void ResourcePreloaderEditor::_notification(int p_what) {
if (p_what == NOTIFICATION_ENTER_TREE) {
load->set_icon(get_icon("Folder", "EditorIcons"));
}
if (p_what == NOTIFICATION_READY) {
//NodePath("/root")->connect("node_removed", this,"_node_removed",Vector<Variant>(),true);
}
if (p_what == NOTIFICATION_DRAW) {
switch (p_what) {
case NOTIFICATION_ENTER_TREE:
case NOTIFICATION_THEME_CHANGED: {
load->set_icon(get_icon("Folder", "EditorIcons"));
} break;
}
}