mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 05:19:50 +01:00
Remove auto selecting the first file for FileDialog with Save file mode selected
(cherry picked from commit 5cd30be56d1d34d84bd423fb99f8fa03edbfe75e)
This commit is contained in:
parent
699d2caa1d
commit
03ae12b069
@ -541,8 +541,11 @@ void FileDialog::update_file_list() {
|
||||
files.pop_front();
|
||||
}
|
||||
|
||||
if (tree->get_root() && tree->get_root()->get_children() && tree->get_selected() == nullptr) {
|
||||
tree->get_root()->get_children()->select(0);
|
||||
if (mode != MODE_SAVE_FILE) {
|
||||
// Select the first file from list if nothing is selected.
|
||||
if (tree->get_root() && tree->get_root()->get_children() && tree->get_selected() == nullptr) {
|
||||
tree->get_root()->get_children()->select(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user