1
0
Fork 0
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:
Oliver James 2024-10-16 11:58:58 +01:00
parent 9bddeb9324
commit 04a04cffcd

View file

@ -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;