Display icon for "Set As Main Scene" in filesystem popup

This commit is contained in:
Andrii Doroshenko (Xrayez) 2019-11-11 12:58:00 +02:00
parent 4b8feff594
commit 1f62318f92

View File

@ -2147,7 +2147,7 @@ void FileSystemDock::_file_and_folders_fill_popup(PopupMenu *p_popup, Vector<Str
if (filenames.size() == 1) {
p_popup->add_icon_item(get_icon("Load", "EditorIcons"), TTR("Open Scene"), FILE_OPEN);
p_popup->add_icon_item(get_icon("CreateNewSceneFrom", "EditorIcons"), TTR("New Inherited Scene"), FILE_INHERIT);
p_popup->add_item(TTR("Set As Main Scene"), FILE_MAIN_SCENE);
p_popup->add_icon_item(get_icon("PlayScene", "EditorIcons"), TTR("Set As Main Scene"), FILE_MAIN_SCENE);
} else {
p_popup->add_icon_item(get_icon("Load", "EditorIcons"), TTR("Open Scenes"), FILE_OPEN);
}