Merge pull request #97112 from KoBeWi/image_not_found

Fix generic conversion icon
This commit is contained in:
Rémi Verschelde 2024-09-17 21:02:30 +02:00
commit 71b3221607
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ void EditorResourcePicker::_update_menu_items() {
if (has_theme_icon(what, EditorStringName(EditorIcons))) { if (has_theme_icon(what, EditorStringName(EditorIcons))) {
icon = get_editor_theme_icon(what); icon = get_editor_theme_icon(what);
} else { } else {
icon = get_theme_icon(what, SNAME("Resource")); icon = get_editor_theme_icon(SNAME("Object"));
} }
edit_menu->add_icon_item(icon, vformat(TTR("Convert to %s"), what), CONVERT_BASE_ID + relative_id); edit_menu->add_icon_item(icon, vformat(TTR("Convert to %s"), what), CONVERT_BASE_ID + relative_id);

View File

@ -3414,7 +3414,7 @@ void FileSystemDock::_file_and_folders_fill_popup(PopupMenu *p_popup, const Vect
if (has_theme_icon(E, SNAME("EditorIcons"))) { if (has_theme_icon(E, SNAME("EditorIcons"))) {
icon = get_editor_theme_icon(E); icon = get_editor_theme_icon(E);
} else { } else {
icon = get_editor_theme_icon(SNAME("Resource")); icon = get_editor_theme_icon(SNAME("Object"));
} }
container_menu->add_icon_item(icon, vformat(TTR(conversion_string_template), E), CONVERT_BASE_ID + relative_id); container_menu->add_icon_item(icon, vformat(TTR(conversion_string_template), E), CONVERT_BASE_ID + relative_id);