mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Added an extra check to the previous commit to make sure that the showBuildTab command is only invoked if the build tab is not already showing to prevent the command being constantly re-triggered when continuously recompiling
This commit is contained in:
parent
a256e6e9e1
commit
a5c9cd9bd7
2 changed files with 5 additions and 4 deletions
|
|
@ -844,10 +844,10 @@ void CompileEngineChildProcess::handleClassListChanged (const ValueTree& newList
|
|||
|
||||
void CompileEngineChildProcess::handleBuildFailed()
|
||||
{
|
||||
// check that the command will be processed
|
||||
auto* mcm = ModalComponentManager::getInstance();
|
||||
auto* pcc = findProjectContentComponent();
|
||||
|
||||
if (mcm->getNumModalComponents() != 0 || findProjectContentComponent() == nullptr)
|
||||
if (mcm->getNumModalComponents() > 0 || pcc == nullptr || pcc->getCurrentTabIndex() == 1)
|
||||
return;
|
||||
|
||||
if (errorList.getNumErrors() > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue