mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +00:00
Projucer: Moved a Thread::sleep() call that would be called every time a project was saved out of the Xcode exporter and only call it if saving and opening project in Xcode
This commit is contained in:
parent
c25727c64a
commit
ff7cfb8824
6 changed files with 25 additions and 18 deletions
|
|
@ -628,10 +628,15 @@ bool ProjectContentComponent::goToCounterpart()
|
|||
return false;
|
||||
}
|
||||
|
||||
bool ProjectContentComponent::saveProject()
|
||||
bool ProjectContentComponent::saveProject (bool shouldWait)
|
||||
{
|
||||
return project != nullptr
|
||||
&& project->save (true, true) == FileBasedDocument::savedOk;
|
||||
if (project != nullptr)
|
||||
{
|
||||
const ScopedValueSetter<bool> valueSetter (project->shouldWaitAfterSaving, shouldWait, false);
|
||||
return (project->save (true, true) == FileBasedDocument::savedOk);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void ProjectContentComponent::closeProject()
|
||||
|
|
@ -737,7 +742,7 @@ void ProjectContentComponent::openInSelectedIDE (bool saveFirst)
|
|||
if (exporter->canLaunchProject() && exporter->getName() == selectedIDE)
|
||||
{
|
||||
if (saveFirst)
|
||||
saveProject();
|
||||
saveProject (exporter->isXcode());
|
||||
|
||||
exporter->launchProject();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue