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:
commit
8b61a3c358
@ -686,7 +686,7 @@ void FileDialog::set_default_show_hidden_files(bool p_show) {
|
|||||||
|
|
||||||
FileDialog::FileDialog() {
|
FileDialog::FileDialog() {
|
||||||
|
|
||||||
show_hidden_files=true;
|
show_hidden_files=default_show_hidden_files;
|
||||||
|
|
||||||
VBoxContainer *vbc = memnew( VBoxContainer );
|
VBoxContainer *vbc = memnew( VBoxContainer );
|
||||||
add_child(vbc);
|
add_child(vbc);
|
||||||
|
@ -819,6 +819,7 @@ ProjectManager::ProjectManager() {
|
|||||||
if (!EditorSettings::get_singleton())
|
if (!EditorSettings::get_singleton())
|
||||||
EditorSettings::create();
|
EditorSettings::create();
|
||||||
|
|
||||||
|
FileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("file_dialog/show_hidden_files"));
|
||||||
|
|
||||||
set_area_as_parent_rect();
|
set_area_as_parent_rect();
|
||||||
Panel *panel = memnew( Panel );
|
Panel *panel = memnew( Panel );
|
||||||
|
Loading…
Reference in New Issue
Block a user