Browse Source

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

tags/2021-05-28
ed 8 years ago
parent
commit
a5c9cd9bd7
2 changed files with 5 additions and 4 deletions
  1. +2
    -2
      extras/Projucer/Source/LiveBuildEngine/projucer_CompileEngineClient.cpp
  2. +3
    -2
      extras/Projucer/Source/Project/jucer_ProjectContentComponent.h

+ 2
- 2
extras/Projucer/Source/LiveBuildEngine/projucer_CompileEngineClient.cpp View File

@@ -844,10 +844,10 @@ void CompileEngineChildProcess::handleClassListChanged (const ValueTree& newList
void CompileEngineChildProcess::handleBuildFailed() void CompileEngineChildProcess::handleBuildFailed()
{ {
// check that the command will be processed
auto* mcm = ModalComponentManager::getInstance(); auto* mcm = ModalComponentManager::getInstance();
auto* pcc = findProjectContentComponent();
if (mcm->getNumModalComponents() != 0 || findProjectContentComponent() == nullptr)
if (mcm->getNumModalComponents() > 0 || pcc == nullptr || pcc->getCurrentTabIndex() == 1)
return; return;
if (errorList.getNumErrors() > 0) if (errorList.getNumErrors() > 0)


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

@@ -80,8 +80,9 @@ public:
void openInSelectedIDE (bool saveFirst); void openInSelectedIDE (bool saveFirst);
void showNewExporterMenu(); void showNewExporterMenu();
void showProjectTab() { sidebarTabs.setCurrentTabIndex (0); }
void showBuildTab() { sidebarTabs.setCurrentTabIndex (1); }
void showProjectTab() { sidebarTabs.setCurrentTabIndex (0); }
void showBuildTab() { sidebarTabs.setCurrentTabIndex (1); }
int getCurrentTabIndex() { return sidebarTabs.getCurrentTabIndex(); }
void showFilesPanel() { showProjectPanel (0); } void showFilesPanel() { showProjectPanel (0); }
void showModulesPanel() { showProjectPanel (1); } void showModulesPanel() { showProjectPanel (1); }


Loading…
Cancel
Save