1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

Fixed a bug in the Projucer where the live-build's continuous recompilation state wasn't being changed when toggled on/off in the menu

This commit is contained in:
ed 2017-04-11 16:09:00 +01:00
parent 7d6e5f8d73
commit 308f634f62
2 changed files with 15 additions and 2 deletions

View file

@ -1563,6 +1563,19 @@ void ProjectContentComponent::timerCallback()
refreshTabsIfBuildStatusChanged();
}
bool ProjectContentComponent::isContinuousRebuildEnabled()
{
return getAppSettings().getGlobalProperties().getBoolValue ("continuousRebuild", true);
}
void ProjectContentComponent::setContinuousRebuildEnabled (bool b)
{
getAppSettings().getGlobalProperties().setValue ("continuousRebuild", b);
if (childProcess != nullptr)
childProcess->setContinuousRebuild (b);
}
ReferenceCountedObjectPtr<CompileEngineChildProcess> ProjectContentComponent::getChildProcess()
{
if (childProcess == nullptr && isBuildEnabled())