From 282c3924663128f6a2b7ecd86772b01a1b4c82f0 Mon Sep 17 00:00:00 2001 From: tommy3 Date: Thu, 14 May 2015 23:50:15 +0200 Subject: [PATCH] set initial flag 'show_hidden_files' for file dialogs in project manager initialization --- scene/gui/file_dialog.cpp | 2 +- tools/editor/project_manager.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp index 13cf87ac2ba..285de269b9e 100644 --- a/scene/gui/file_dialog.cpp +++ b/scene/gui/file_dialog.cpp @@ -692,7 +692,7 @@ void FileDialog::set_default_show_hidden_files(bool p_show) { FileDialog::FileDialog() { - show_hidden_files=true; + show_hidden_files=default_show_hidden_files; VBoxContainer *vbc = memnew( VBoxContainer ); add_child(vbc); diff --git a/tools/editor/project_manager.cpp b/tools/editor/project_manager.cpp index 00956919b73..f1eecd53b09 100644 --- a/tools/editor/project_manager.cpp +++ b/tools/editor/project_manager.cpp @@ -819,6 +819,7 @@ ProjectManager::ProjectManager() { if (!EditorSettings::get_singleton()) EditorSettings::create(); + FileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("file_dialog/show_hidden_files")); set_area_as_parent_rect(); Panel *panel = memnew( Panel );