From e6b049641572f9df332196aab219d7d6280740bd Mon Sep 17 00:00:00 2001 From: PucklaMotzer09 Date: Tue, 4 Jan 2022 11:32:08 +0100 Subject: Show that resources of remaps can not be found --- editor/localization_editor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/editor/localization_editor.cpp b/editor/localization_editor.cpp index 533eabd8f2..bd486b1930 100644 --- a/editor/localization_editor.cpp +++ b/editor/localization_editor.cpp @@ -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); -- cgit v1.2.3