You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Some improvements to file/dir open/save dialogs:
1. Removed "..", instead you now will see "Select Current Folder" and "Select this Folder" buttons. 2. Added "go to parent folder" (^) button to Save a File dialog. 3. Tree.cpp: "nothing_selected" signal has been re-made (previous implementation, merged in #13308, wasn't optimal in context of performance) 4. Fixed issue in Project Export dialog: MODE_SAVE_FILE wasn't set when you click "Export". 5. Now you can deselect items by clicking on empty space in Open a Directory dialog.
This commit is contained in:
committed by
Rémi Verschelde
parent
ed0af05111
commit
ad351a29db
@@ -586,7 +586,7 @@ void EditorFileDialog::update_file_list() {
|
||||
|
||||
while ((item = dir_access->get_next(&isdir)) != "") {
|
||||
|
||||
if (item == ".")
|
||||
if (item == "." || item == "..")
|
||||
continue;
|
||||
|
||||
ishidden = dir_access->current_is_hidden();
|
||||
@@ -599,11 +599,6 @@ void EditorFileDialog::update_file_list() {
|
||||
}
|
||||
}
|
||||
|
||||
if (dirs.find("..") == NULL) {
|
||||
//may happen if lacking permissions
|
||||
dirs.push_back("..");
|
||||
}
|
||||
|
||||
dirs.sort_custom<NaturalNoCaseComparator>();
|
||||
files.sort_custom<NaturalNoCaseComparator>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user