summaryrefslogtreecommitdiff
path: root/editor/editor_file_dialog.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-04 09:56:27 +0200
committerGitHub <noreply@github.com>2020-07-04 09:56:27 +0200
commita5b061e1b8990d895679261e7b8946104c48de3b (patch)
tree85edf2860d569c8ef783270c859b6a428bf94d1c /editor/editor_file_dialog.cpp
parent643305c9fcd32927064ccc4f34e2f2e060a3b91f (diff)
parent110e650dc83cc7382e1ba410a0007f10b80ef3dd (diff)
Merge pull request #40107 from reduz/fix-default-fonts
Correctly use fallback for default fonts
Diffstat (limited to 'editor/editor_file_dialog.cpp')
-rw-r--r--editor/editor_file_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_file_dialog.cpp b/editor/editor_file_dialog.cpp
index eb4c587122..50be291c91 100644
--- a/editor/editor_file_dialog.cpp
+++ b/editor/editor_file_dialog.cpp
@@ -55,7 +55,7 @@ VBoxContainer *EditorFileDialog::get_vbox() {
}
void EditorFileDialog::_notification(int p_what) {
- if (p_what == NOTIFICATION_ENTER_TREE) {
+ if (p_what == NOTIFICATION_READY || p_what == NOTIFICATION_THEME_CHANGED) {
// update icons
mode_thumbnails->set_icon(item_list->get_theme_icon("FileThumbnail", "EditorIcons"));
mode_list->set_icon(item_list->get_theme_icon("FileList", "EditorIcons"));