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:
parent
2224bb9760
commit
a71bda9adb
6 changed files with 34 additions and 11 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue