Fixed disappearing text on filedialog buttons
This commit is contained in:
parent
ff3e1eaeb3
commit
6a48f952ca
|
@ -319,10 +319,10 @@ void FileDialog::deselect_items() {
|
||||||
|
|
||||||
case MODE_OPEN_FILE:
|
case MODE_OPEN_FILE:
|
||||||
case MODE_OPEN_FILES:
|
case MODE_OPEN_FILES:
|
||||||
get_ok()->set_text(TTR("Open"));
|
get_ok()->set_text(RTR("Open"));
|
||||||
break;
|
break;
|
||||||
case MODE_OPEN_DIR:
|
case MODE_OPEN_DIR:
|
||||||
get_ok()->set_text(TTR("Select Current Folder"));
|
get_ok()->set_text(RTR("Select Current Folder"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -339,7 +339,7 @@ void FileDialog::_tree_selected() {
|
||||||
|
|
||||||
file->set_text(d["name"]);
|
file->set_text(d["name"]);
|
||||||
} else if (mode == MODE_OPEN_DIR) {
|
} else if (mode == MODE_OPEN_DIR) {
|
||||||
get_ok()->set_text(TTR("Select this Folder"));
|
get_ok()->set_text(RTR("Select this Folder"));
|
||||||
}
|
}
|
||||||
|
|
||||||
get_ok()->set_disabled(_is_open_should_be_disabled());
|
get_ok()->set_disabled(_is_open_should_be_disabled());
|
||||||
|
@ -843,7 +843,7 @@ FileDialog::FileDialog() {
|
||||||
HBoxContainer *hbc = memnew(HBoxContainer);
|
HBoxContainer *hbc = memnew(HBoxContainer);
|
||||||
|
|
||||||
dir_up = memnew(ToolButton);
|
dir_up = memnew(ToolButton);
|
||||||
dir_up->set_tooltip(TTR("Go to parent folder"));
|
dir_up->set_tooltip(RTR("Go to parent folder"));
|
||||||
hbc->add_child(dir_up);
|
hbc->add_child(dir_up);
|
||||||
dir_up->connect("pressed", this, "_go_up");
|
dir_up->connect("pressed", this, "_go_up");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue