Browse Source

Projucer: Open example files in new window

tags/2021-05-28
ed 5 years ago
parent
commit
7ce8cc32e9
2 changed files with 4 additions and 3 deletions
  1. +2
    -2
      extras/Projucer/Source/Application/jucer_Application.cpp
  2. +2
    -1
      extras/Projucer/Source/Application/jucer_MainWindow.cpp

+ 2
- 2
extras/Projucer/Source/Application/jucer_Application.cpp View File

@@ -707,7 +707,7 @@ void ProjucerApplication::findAndLaunchExample (int selectedIndex)
// example doesn't exist?
jassert (example != File());
mainWindowList.openFile (example);
openFile (example);
}
//==============================================================================
@@ -1176,7 +1176,7 @@ void ProjucerApplication::createNewProjectFromClipboard()
{
errorString = "Clipboard does not contain a valid PIP.";
}
else if (! mainWindowList.openFile (tempFile))
else if (! openFile (tempFile))
{
errorString = "Couldn't create project from clipboard contents.";
mainWindowList.closeWindow (mainWindowList.windows.getLast());


+ 2
- 1
extras/Projucer/Source/Application/jucer_MainWindow.cpp View File

@@ -666,7 +666,8 @@ bool MainWindowList::openFile (const File& file, bool openInBackground)
}
}
if (file.hasFileExtension (Project::projectFileExtension))
if (file.hasFileExtension (Project::projectFileExtension)
|| isPIPFile (file))
{
WeakReference<Component> previousFrontWindow (getFrontmostWindow());


Loading…
Cancel
Save