Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f91906c

Browse files
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

Lines changed: 5 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /