mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Only load the live-build .dll when it's enabled
This commit is contained in:
parent
6a5d554451
commit
d08c26e94d
1 changed files with 12 additions and 4 deletions
|
|
@ -92,7 +92,6 @@ ProjectContentComponent::ProjectContentComponent()
|
|||
liveBuildEnablementChanged (isLiveBuildEnabled);
|
||||
|
||||
Desktop::getInstance().addFocusChangeListener (this);
|
||||
startTimer (1600);
|
||||
}
|
||||
|
||||
ProjectContentComponent::~ProjectContentComponent()
|
||||
|
|
@ -1198,8 +1197,10 @@ void ProjectContentComponent::handleCrash (const String& message)
|
|||
|
||||
bool ProjectContentComponent::isBuildEnabled() const
|
||||
{
|
||||
return project != nullptr && project->getCompileEngineSettings().isBuildEnabled()
|
||||
&& CompileEngineDLL::getInstance()->isLoaded();
|
||||
return isLiveBuildEnabled
|
||||
&& project != nullptr
|
||||
&& project->getCompileEngineSettings().isBuildEnabled()
|
||||
&& CompileEngineDLL::getInstance()->isLoaded();
|
||||
}
|
||||
|
||||
void ProjectContentComponent::refreshTabsIfBuildStatusChanged()
|
||||
|
|
@ -1317,8 +1318,15 @@ void ProjectContentComponent::liveBuildEnablementChanged (bool isEnabled)
|
|||
{
|
||||
isLiveBuildEnabled = isEnabled;
|
||||
|
||||
if (! isLiveBuildEnabled)
|
||||
if (isLiveBuildEnabled)
|
||||
{
|
||||
startTimer (1600);
|
||||
}
|
||||
else
|
||||
{
|
||||
stopTimer();
|
||||
killChildProcess();
|
||||
}
|
||||
|
||||
rebuildProjectUI();
|
||||
headerComponent.liveBuildEnablementChanged (isLiveBuildEnabled);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue