You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
LiveCoding: Disable the editor compile button while a compile is in progress.
#rb none #jira UE-71077 #ROBOMERGE-OWNER: ryan.gerleve #ROBOMERGE-AUTHOR: ben.marsh #ROBOMERGE-SOURCE: CL 5343160 in //UE4/Release-4.22/... via CL 5343162 #ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking) [CL 5401595 by ben marsh in Dev-Networking branch]
This commit is contained in:
@@ -18,6 +18,7 @@ IMPLEMENT_MODULE(FLiveCodingModule, LiveCoding)
|
||||
|
||||
#define LOCTEXT_NAMESPACE "LiveCodingModule"
|
||||
|
||||
bool GIsCompileActive = false;
|
||||
FString GLiveCodingConsolePath;
|
||||
FString GLiveCodingConsoleArguments;
|
||||
|
||||
@@ -135,17 +136,26 @@ void FLiveCodingModule::ShowConsole()
|
||||
|
||||
void FLiveCodingModule::TriggerRecompile()
|
||||
{
|
||||
if (!bStarted)
|
||||
if(!GIsCompileActive)
|
||||
{
|
||||
bShouldStart = true;
|
||||
Tick();
|
||||
}
|
||||
if(bStarted)
|
||||
{
|
||||
LppTriggerRecompile();
|
||||
if (!bStarted)
|
||||
{
|
||||
bShouldStart = true;
|
||||
Tick();
|
||||
}
|
||||
if(bStarted)
|
||||
{
|
||||
LppTriggerRecompile();
|
||||
GIsCompileActive = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool FLiveCodingModule::IsCompiling() const
|
||||
{
|
||||
return GIsCompileActive;
|
||||
}
|
||||
|
||||
void FLiveCodingModule::Tick()
|
||||
{
|
||||
if (bShouldStart && !bStarted)
|
||||
|
||||
Reference in New Issue
Block a user