Merge pull request #1907 from tommy3/show-hidden-files

set initial flag 'show_hidden_files' for file dialogs in project manager initialization
This commit is contained in:
Juan Linietsky 2015-06-23 00:01:55 -03:00
commit 8b61a3c358
2 changed files with 2 additions and 1 deletions

View File

@ -686,7 +686,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 );