set initial flag 'show_hidden_files' for file dialogs in project manager initialization
This commit is contained in:
parent
40c0e1993a
commit
282c392466
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue