Adds Submit Content menu entry.

Moves Source Control related actions to Tools menu.

#rb Sebastien.Lussier
#jira UE-117782, FORT-415499
#p4v-cherrypick 17872483

#changelist validated

#ROBOMERGE-AUTHOR: luc.eygasier
#ROBOMERGE-SOURCE: CL 17876035 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v883-17842818)

[CL 17876042 by luc eygasier in ue5-release-engine-test branch]
This commit is contained in:
luc eygasier
2021-10-20 14:16:23 -04:00
parent 477517be10
commit f467190232
7 changed files with 97 additions and 59 deletions

View File

@@ -61,10 +61,10 @@ void FSourceControlWindowsModule::StartupModule()
// Create a Source Control group under the Tools category
const FSlateIcon SourceControlIcon(FEditorStyle::GetStyleSetName(), "SourceControl.ChangelistsTab");
// Register the changlist tab spawner
FGlobalTabmanager::Get()->RegisterNomadTabSpawner(SourceControlChangelistsTabName, FOnSpawnTab::CreateRaw(this, &FSourceControlWindowsModule::CreateChangelistsTab))
.SetDisplayName(LOCTEXT("ChangelistsTabTitle", "Changelists"))
.SetGroup(WorkspaceMenu::GetMenuStructure().GetToolsCategory())
// Register the changelist tab spawner
FGlobalTabmanager::Get()->RegisterTabSpawner(SourceControlChangelistsTabName, FOnSpawnTab::CreateRaw(this, &FSourceControlWindowsModule::CreateChangelistsTab))
.SetDisplayName(LOCTEXT("ChangelistsTabTitle", "View Changelists"))
.SetTooltipText(LOCTEXT("ChangelistsTabTooltip", "Opens a dialog displaying current changelists."))
.SetIcon(SourceControlIcon);
#if WITH_RELOAD
@@ -80,7 +80,7 @@ void FSourceControlWindowsModule::ShutdownModule()
{
if (FSlateApplication::IsInitialized())
{
FGlobalTabmanager::Get()->UnregisterNomadTabSpawner(SourceControlChangelistsTabName);
FGlobalTabmanager::Get()->UnregisterTabSpawner(SourceControlChangelistsTabName);
if (ChangelistsTab.IsValid())
{