mirror of
https://github.com/godotengine/godot.git
synced 2025-01-06 17:37:18 +08:00
Prevent confirm button being override to "Open" when in save file mode
This commit is contained in:
parent
42e5b3ac2d
commit
4a4968f7d8
@ -634,8 +634,10 @@ void EditorFileDialog::_item_selected(int p_item) {
|
|||||||
file->set_text(d["name"]);
|
file->set_text(d["name"]);
|
||||||
_request_single_thumbnail(get_current_dir().path_join(get_current_file()));
|
_request_single_thumbnail(get_current_dir().path_join(get_current_file()));
|
||||||
|
|
||||||
// FILE_MODE_OPEN_ANY can alternate this text depending on what's selected.
|
if (mode != FILE_MODE_SAVE_FILE) {
|
||||||
set_ok_button_text(TTR("Open"));
|
// FILE_MODE_OPEN_ANY can alternate this text depending on what's selected.
|
||||||
|
set_ok_button_text(TTR("Open"));
|
||||||
|
}
|
||||||
} else if (mode == FILE_MODE_OPEN_DIR || mode == FILE_MODE_OPEN_ANY) {
|
} else if (mode == FILE_MODE_OPEN_DIR || mode == FILE_MODE_OPEN_ANY) {
|
||||||
file->set_text("");
|
file->set_text("");
|
||||||
set_ok_button_text(TTR("Select This Folder"));
|
set_ok_button_text(TTR("Select This Folder"));
|
||||||
|
Loading…
Reference in New Issue
Block a user