Level Editor Menu Clean Up, Part 2

#JIRA UETOOL-3039
#rb Lauren.Barnes
#lockdown Simon.Tourangeau
#preflight 606d2c11dc3e5b0001c915aa

#ROBOMERGE-OWNER: louise.rasmussen
#ROBOMERGE-AUTHOR: louise.rasmussen
#ROBOMERGE-SOURCE: CL 15937971 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)
#ROBOMERGE-CONFLICT from-shelf

[CL 15938452 by louise rasmussen in ue5-main branch]
This commit is contained in:
louise rasmussen
2021-04-07 02:56:12 -04:00
parent 276a1d2eef
commit af40e9cac5
29 changed files with 119 additions and 110 deletions

View File

@@ -158,24 +158,7 @@ void FMainMenu::RegisterEditMenu()
}
}));
Section.AddDynamicEntry("SourceControlDyn", FNewToolMenuSectionDelegate::CreateLambda([](FToolMenuSection& InSection)
{
if (ISourceControlModule::Get().IsEnabled() && ISourceControlModule::Get().GetProvider().IsAvailable())
{
// Choose specific files to submit
InSection.AddMenuEntry(FMainFrameCommands::Get().ViewChangelists,
TAttribute<FText>(),
TAttribute<FText>(),
FSlateIcon(FEditorStyle::GetStyleSetName(), "SourceControl.ChangelistsTab"));
}
else
{
InSection.AddMenuEntry(FMainFrameCommands::Get().ConnectToSourceControl,
TAttribute<FText>(),
TAttribute<FText>(),
FSlateIcon(FEditorStyle::GetStyleSetName(), "SourceControl.Actions.Connect"));
}
}));
Section.AddMenuEntry(FMainFrameCommands::Get().ConnectToSourceControl);
}
}
@@ -218,7 +201,7 @@ void FMainMenu::RegisterWindowMenu()
// Make sure at least one is enabled before creating the section
if (bLocalizationDashboard || bTranslationPicker)
{
FToolMenuSection& Section = Menu->AddSection("ExperimentalTabSpawners", LOCTEXT("ExperimentalTabSpawnersHeading", "Experimental"), FToolMenuInsert("WindowGlobalTabSpawners", EToolMenuInsertType::After));
FToolMenuSection& Section = Menu->AddSection("ExperimentalTabSpawners", LOCTEXT("ExperimentalTabSpawnersHeading", "Experimental"), FToolMenuInsert("WindowLayout", EToolMenuInsertType::Before));
{
// Localization Dashboard
if (bLocalizationDashboard)