mirror of
https://github.com/godotengine/godot.git
synced 2025-02-23 23:15:07 +08:00
Show that resources of remaps can not be found
This commit is contained in:
parent
897d02e2a0
commit
e6b0496415
@ -489,6 +489,13 @@ void LocalizationEditor::update_translations() {
|
||||
t->set_tooltip(0, keys[i]);
|
||||
t->set_metadata(0, keys[i]);
|
||||
t->add_button(0, get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")), 0, false, TTR("Remove"));
|
||||
|
||||
// Display that it has been removed if this is the case.
|
||||
if (!FileAccess::exists(keys[i])) {
|
||||
t->set_text(0, t->get_text(0) + vformat(" (%s)", TTR("Removed")));
|
||||
t->set_tooltip(0, vformat(TTR("%s cannot be found."), t->get_tooltip(0)));
|
||||
}
|
||||
|
||||
if (keys[i] == remap_selected) {
|
||||
t->select(0);
|
||||
translation_res_option_add_button->set_disabled(false);
|
||||
|
Loading…
Reference in New Issue
Block a user