Merge pull request #76421 from timothyqiu/editor-dialog

Fix inconsistent file dialog settings usage
This commit is contained in:
Rémi Verschelde 2023-04-25 10:01:06 +02:00
commit e54ebaf0eb
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 4 additions and 0 deletions

View file

@ -2602,6 +2602,7 @@ ProjectManager::ProjectManager() {
DisplayServer::get_singleton()->window_set_title(VERSION_NAME + String(" - ") + TTR("Project Manager", "Application"));
EditorFileDialog::set_default_show_hidden_files(EDITOR_GET("filesystem/file_dialog/show_hidden_files"));
EditorFileDialog::set_default_display_mode((EditorFileDialog::DisplayMode)EDITOR_GET("filesystem/file_dialog/display_mode").operator int());
int swap_cancel_ok = EDITOR_GET("interface/editor/accept_dialog_cancel_ok_buttons");
if (swap_cancel_ok != 0) { // 0 is auto, set in register_scene based on DisplayServer.