From 6b51409db31a87a3869a3bbf19763262dbcb5c79 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 25 Apr 2023 09:27:26 +0800 Subject: [PATCH] Fix inconsistent file dialog settings usage --- editor/editor_node.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index b37d8fe2e..1780d697d 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -562,6 +562,10 @@ void EditorNode::_notification(int p_what) { case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { scene_tabs->set_tab_close_display_policy((bool(EDITOR_GET("interface/scene_tabs/always_show_close_button")) ? Tabs::CLOSE_BUTTON_SHOW_ALWAYS : Tabs::CLOSE_BUTTON_SHOW_ACTIVE_ONLY)); + FileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("filesystem/file_dialog/show_hidden_files")); + EditorFileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("filesystem/file_dialog/show_hidden_files")); + EditorFileDialog::set_default_display_mode((EditorFileDialog::DisplayMode)EditorSettings::get_singleton()->get("filesystem/file_dialog/display_mode").operator int()); + theme = create_custom_theme(theme_base->get_theme()); theme_base->set_theme(theme);