mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +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
|
bool launchProject() override
|
||||||
{
|
{
|
||||||
#if JUCE_WINDOWS
|
#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();
|
return getSLNFile().startAsProcess();
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue