set initial flag 'show_hidden_files' for file dialogs in project manager initialization

This commit is contained in:
tommy3 2015-05-14 23:50:15 +02:00
parent 40c0e1993a
commit 282c392466
2 changed files with 2 additions and 1 deletions

View file

@ -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);

View file

@ -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 );