mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Introjucer: on windows, stopped the cancel button of the new project wizard from closing the app.
This commit is contained in:
parent
b11a88bc01
commit
40ca59a54e
1 changed files with 8 additions and 1 deletions
|
|
@ -616,7 +616,14 @@ struct NewProjectWizardClasses
|
|||
else
|
||||
{
|
||||
if (MainWindow* mw = dynamic_cast<MainWindow*> (getTopLevelComponent()))
|
||||
IntrojucerApp::getApp().mainWindowList.closeWindow (mw);
|
||||
{
|
||||
#if ! JUCE_MAC
|
||||
if (IntrojucerApp::getApp().mainWindowList.windows.size() == 1)
|
||||
mw->setProject (nullptr);
|
||||
else
|
||||
#endif
|
||||
IntrojucerApp::getApp().mainWindowList.closeWindow (mw);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue