Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rsubtil committed Oct 1, 2023
1 parent c8de3a5 commit abcbd62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/file_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ void FileDialog::update_file_list() {
files.pop_front();
}

if (mode != FILE_MODE_SAVE_FILE) {
if (mode != FILE_MODE_SAVE_FILE && mode != FILE_MODE_OPEN_DIR) {
// Select the first file from list if nothing is selected.
if (tree->get_root() && tree->get_root()->get_first_child() && tree->get_selected() == nullptr) {
tree->get_root()->get_first_child()->select(0);
Expand Down

0 comments on commit abcbd62

Please sign in to comment.