mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Projucer: Check for VS instances before opening projects
This commit is contained in:
parent
9bddeb9324
commit
04a04cffcd
1 changed files with 6 additions and 0 deletions
|
|
@ -1585,6 +1585,12 @@ public:
|
|||
bool launchProject() override
|
||||
{
|
||||
#if JUCE_WINDOWS
|
||||
// Don't launch if already open
|
||||
const auto foundDBFiles = getSLNFile().getSiblingFile (".vs").findChildFiles (File::findFiles, true, "*.opendb", File::FollowSymlinks::no);
|
||||
|
||||
if (! foundDBFiles.isEmpty())
|
||||
return false;
|
||||
|
||||
return getSLNFile().startAsProcess();
|
||||
#else
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue