1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Fixed a few Projucer UI issues

This commit is contained in:
ed 2017-05-04 12:51:02 +01:00
parent fa0b097652
commit ed51317ee6
6 changed files with 54 additions and 64 deletions

View file

@ -1244,6 +1244,9 @@ void ProjectContentComponent::setBuildEnabled (bool b)
LiveBuildProjectSettings::setBuildDisabled (*project, ! b);
killChildProcess();
refreshTabsIfBuildStatusChanged();
if (auto* h = dynamic_cast<HeaderComponent*> (header.get()))
h->updateBuildButtons (b, isContinuousRebuildEnabled());
}
}
@ -1382,10 +1385,17 @@ bool ProjectContentComponent::isContinuousRebuildEnabled()
void ProjectContentComponent::setContinuousRebuildEnabled (bool b)
{
getAppSettings().getGlobalProperties().setValue ("continuousRebuild", b);
if (childProcess != nullptr)
{
childProcess->setContinuousRebuild (b);
if (auto* h = dynamic_cast<HeaderComponent*> (header.get()))
h->updateBuildButtons (isBuildEnabled(), b);
getAppSettings().getGlobalProperties().setValue ("continuousRebuild", b);
ProjucerApplication::getCommandManager().commandStatusChanged();
}
}
ReferenceCountedObjectPtr<CompileEngineChildProcess> ProjectContentComponent::getChildProcess()