Browse Source

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

tags/2021-05-28
ed 8 years ago
parent
commit
308f634f62
2 changed files with 15 additions and 2 deletions
  1. +13
    -0
      extras/Projucer/Source/Project/jucer_ProjectContentComponent.cpp
  2. +2
    -2
      extras/Projucer/Source/Project/jucer_ProjectContentComponent.h

+ 13
- 0
extras/Projucer/Source/Project/jucer_ProjectContentComponent.cpp 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())


+ 2
- 2
extras/Projucer/Source/Project/jucer_ProjectContentComponent.h View File

@@ -156,8 +156,8 @@ private:
Component* createDisabledBuildTabSubscribe (String textPrefix, bool loggedIn, bool dllPresent);
Component* createDisabledBuildTabInfoOnly (const char* messsage);
bool isContinuousRebuildEnabled() { return getAppSettings().getGlobalProperties().getBoolValue ("continuousRebuild", true); }
void setContinuousRebuildEnabled (bool b) { getAppSettings().getGlobalProperties().setValue ("continuousRebuild", b); }
bool isContinuousRebuildEnabled();
void setContinuousRebuildEnabled (bool b);
void rebuildNow();
void handleCrash (const String& message);
void updateWarningState();


Loading…
Cancel
Save