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:
ben marsh
2019-03-14 17:06:58 -04:00
parent 9c22582b62
commit 06697b7c6a
5 changed files with 34 additions and 7 deletions

View File

@@ -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)