Fix EditorFileDialog
clears the file name on changing directory
Fixes issues with assigning a name for files being saved
This commit is contained in:
parent
80bfca20c6
commit
17d69ed7bb
@ -264,17 +264,17 @@ void EditorFileDialog::update_dir() {
|
|||||||
}
|
}
|
||||||
dir->set_text(dir_access->get_current_dir(false));
|
dir->set_text(dir_access->get_current_dir(false));
|
||||||
|
|
||||||
file->set_text("");
|
|
||||||
|
|
||||||
// Disable "Open" button only when selecting file(s) mode.
|
// Disable "Open" button only when selecting file(s) mode.
|
||||||
get_ok_button()->set_disabled(_is_open_should_be_disabled());
|
get_ok_button()->set_disabled(_is_open_should_be_disabled());
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case FILE_MODE_OPEN_FILE:
|
case FILE_MODE_OPEN_FILE:
|
||||||
case FILE_MODE_OPEN_FILES:
|
case FILE_MODE_OPEN_FILES:
|
||||||
|
file->set_text("");
|
||||||
set_ok_button_text(TTR("Open"));
|
set_ok_button_text(TTR("Open"));
|
||||||
break;
|
break;
|
||||||
case FILE_MODE_OPEN_ANY:
|
case FILE_MODE_OPEN_ANY:
|
||||||
case FILE_MODE_OPEN_DIR:
|
case FILE_MODE_OPEN_DIR:
|
||||||
|
file->set_text("");
|
||||||
set_ok_button_text(TTR("Select Current Folder"));
|
set_ok_button_text(TTR("Select Current Folder"));
|
||||||
break;
|
break;
|
||||||
case FILE_MODE_SAVE_FILE:
|
case FILE_MODE_SAVE_FILE:
|
||||||
|
Loading…
Reference in New Issue
Block a user