Skip to content

Commit f91906c

Browse files
committed
fix launch new project in Empty folder (dont shutdown if detect duplicate instance already) fixes #189
1 parent 2ad723a commit f91906c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

UnityLauncherPro/MainWindow.xaml.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@ void Start()
133133
// Send a wake-up message to the running instance
134134
ActivateRunningInstance();
135135

136-
// Exit the current instance
137-
App.Current.Shutdown();
136+
// Exit the current instance (if not coming from Explorer launch)
137+
if (Directory.GetCurrentDirectory().ToLower() != @"c:\windows\system32")
138+
{
139+
App.Current.Shutdown();
140+
}
138141
}
139142
else
140143
{

0 commit comments

Comments
 (0)