Skip to content

Commit b990989

Browse files
committed
display error if try to upgrade from commandline, without unty editors #212
1 parent 65025c8 commit b990989

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

UnityLauncherPro/MainWindow.xaml.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,17 @@ void HandleCommandLineLaunch()
333333
{
334334
bool useInitScript = (bool)chkUseInitScript.IsChecked;
335335

336-
Tools.DisplayUpgradeDialog(proj, null, useInitScript);
336+
// if not editors found, then dont open commandline?
337+
if (unityInstallationsSource.Count > 0)
338+
{
339+
Tools.DisplayUpgradeDialog(proj, null, useInitScript);
340+
}
341+
else
342+
{
343+
MessageBox.Show("No Unity installations found. Please setup Unity Editor root folders first by running UnityLauncherPro.", "No Unity Installations found", MessageBoxButton.OK, MessageBoxImage.Warning);
344+
// TODO display setup tab
345+
}
346+
337347
}
338348
else // no Assets folder here OR Assets folder is empty, then its new project
339349
{

0 commit comments

Comments
 (0)