1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Check if IDE project file exists when saving

This commit is contained in:
ed 2021-12-06 09:55:22 +00:00
parent 2224bb9760
commit a71bda9adb
6 changed files with 34 additions and 11 deletions

View file

@ -504,6 +504,9 @@ void ProjectContentComponent::openInSelectedIDE (bool saveFirst)
if (auto selectedExporter = headerComponent.getSelectedExporter())
{
if (! selectedExporter->canLaunchProject())
return;
if (saveFirst)
{
if (project->isTemporaryProject())
@ -512,7 +515,7 @@ void ProjectContentComponent::openInSelectedIDE (bool saveFirst)
return;
}
if (project->hasChangedSinceSaved())
if (project->hasChangedSinceSaved() || ! selectedExporter->getIDEProjectFile().exists())
{
project->saveAsync (true, true, [safeThis = SafePointer<ProjectContentComponent> { this }] (Project::SaveResult r)
{