You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
SourceControl: Replace main menu "Submit" menu with "View Changelists..."
#rb sebastien.lussier #ROBOMERGE-SOURCE: CL 15725157 in //UE5/Release-5.0-EarlyAccess/... #ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v781-15675533) [CL 15727212 by patrick enfedaque in ue5-main branch]
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "CoreMinimal.h"
|
||||
#include "Modules/ModuleManager.h"
|
||||
#include "ISourceControlWindowsModule.h"
|
||||
#include "ISourceControlModule.h"
|
||||
|
||||
#include "Widgets/Docking/SDockTab.h"
|
||||
#include "Textures/SlateIcon.h"
|
||||
@@ -34,6 +35,7 @@ public:
|
||||
virtual void ShutdownModule() override;
|
||||
|
||||
virtual void ShowChangelistsTab() override;
|
||||
virtual bool CanShowChangelistsTab() const override;
|
||||
|
||||
private:
|
||||
TSharedRef<SDockTab> CreateChangelistsTab(const FSpawnTabArgs& Args);
|
||||
@@ -119,4 +121,16 @@ void FSourceControlWindowsModule::ShowChangelistsTab()
|
||||
FGlobalTabmanager::Get()->TryInvokeTab(FTabId(SourceControlChangelistsTabName));
|
||||
}
|
||||
|
||||
bool FSourceControlWindowsModule::CanShowChangelistsTab() const
|
||||
{
|
||||
ISourceControlModule& SourceControlModule = ISourceControlModule::Get();
|
||||
if (ISourceControlModule::Get().IsEnabled() &&
|
||||
ISourceControlModule::Get().GetProvider().IsAvailable())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#undef LOCTEXT_NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user