Merge pull request #89747 from KoBeWi/icoNOT

Remove stray item icon from tabs menu
This commit is contained in:
Rémi Verschelde 2024-04-26 15:13:31 +02:00
commit 2338d9b3bc
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -178,7 +178,7 @@ void EditorSceneTabs::_update_context_menu() {
if (tab_id >= 0) {
scene_tabs_context_menu->add_separator();
scene_tabs_context_menu->add_icon_item(get_editor_theme_icon(SNAME("ShowInFileSystem")), TTR("Show in FileSystem"), EditorNode::FILE_SHOW_IN_FILESYSTEM);
scene_tabs_context_menu->add_item(TTR("Show in FileSystem"), EditorNode::FILE_SHOW_IN_FILESYSTEM);
_disable_menu_option_if(EditorNode::FILE_SHOW_IN_FILESYSTEM, !ResourceLoader::exists(EditorNode::get_editor_data().get_scene_path(tab_id)));
scene_tabs_context_menu->add_item(TTR("Play This Scene"), EditorNode::FILE_RUN_SCENE);
_disable_menu_option_if(EditorNode::FILE_RUN_SCENE, no_root_node);