diff options
author | tommy3 <tommy@skytel.at> | 2015-05-14 23:50:15 +0200 |
---|---|---|
committer | tommy3 <tommy@skytel.at> | 2015-05-14 23:50:15 +0200 |
commit | 282c3924663128f6a2b7ecd86772b01a1b4c82f0 (patch) | |
tree | 523c6188a38bf8ce50b018ea8f82782ea7f4964a | |
parent | 40c0e1993aa28f580b9bf597abc8902b5d5c1e93 (diff) |
set initial flag 'show_hidden_files' for file dialogs in project manager initialization
-rw-r--r-- | scene/gui/file_dialog.cpp | 2 | ||||
-rw-r--r-- | tools/editor/project_manager.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp index 13cf87ac2b..285de269b9 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 00956919b7..f1eecd53b0 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 ); |