File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ void HandleCommandLineLaunch()
184184 var commandLineArgs = args [ 1 ] ;
185185 if ( commandLineArgs == "-projectPath" )
186186 {
187- Console . WriteLine ( "Launching from commandline ..." ) ;
187+ Console . WriteLine ( "Launching from commandline..." ) ;
188188
189189 // path
190190 var projectPathArgument = args [ 2 ] ;
@@ -1801,9 +1801,10 @@ void CreateNewEmptyProject(string targetFolder = null)
18011801
18021802 if ( string . IsNullOrEmpty ( newVersion ) )
18031803 {
1804- Console . WriteLine ( "Missing selected Unity version" ) ;
1805- SetStatus ( "Missing selected Unity version (it's null, this should not happen)" ) ;
1806- return ;
1804+ Console . WriteLine ( "Missing selected Unity version, probably launching from context menu" ) ;
1805+ newVersion = preferredVersion ;
1806+ // if no preferred version, use latest
1807+ if ( preferredVersion == null ) newVersion = unityInstallationsSource [ 0 ] . Version ;
18071808 }
18081809
18091810 var suggestedName = targetFolder != null ? Path . GetFileName ( targetFolder ) : Tools . GetSuggestedProjectName ( newVersion , rootFolder ) ;
You can’t perform that action at this time.
0 commit comments