Skip to content

Commit c49489b

Browse files
committedJan 18, 2019
Default version prompt to last option if headless
1 parent c9a871e commit c49489b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎Core/Versioning/KspVersion.cs

+4
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,10 @@ public KspVersion RaiseVersionSelectionDialog (IUser user)
540540
// Lucky, there's only one possible version. Happens f.e. if there's only one build per patch (especially the case for newer versions).
541541
return possibleVersions.ElementAt(0);
542542
}
543+
else if (user.Headless)
544+
{
545+
return possibleVersions.LastOrDefault();
546+
}
543547
else
544548
{
545549
int choosen = user.RaiseSelectionDialog(message, possibleVersions.ToArray());

0 commit comments

Comments
 (0)
Please sign in to comment.