Skip to content

Commit 5a82e4f

Browse files
committed
Fix editor not selected as default package, fix * missing in short package list
1 parent 2b5d633 commit 5a82e4f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Command/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ void ShortModulesList(VersionMetadata metadata)
945945
.Where(p => !p.hidden)
946946
.Select(p => p.id + (p.preSelected ? "*" : ""))
947947
.OrderBy(p => p)
948-
.Prepend("unity");
948+
.Prepend("unity*");
949949
if (list.Any()) {
950950
Console.WriteLine(list.Count() + " Packages: " + string.Join(", ", list));
951951
Console.WriteLine();
@@ -1006,7 +1006,7 @@ void EditorPackageDetails(EditorDownload module)
10061006
SetColors(ConsoleColor.DarkGray, ConsoleColor.DarkGray);
10071007
Console.Write("--------------- ");
10081008
SetForeground(ConsoleColor.White);
1009-
Console.Write($"Unity Editor [{module.Id}]" + " *");
1009+
Console.Write($"Unity Editor [{module.Id}] *");
10101010
ResetColor();
10111011
Console.WriteLine();
10121012

sttz.InstallUnity/Installer/UnityInstaller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public IEnumerable<string> GetDefaultPackages(VersionMetadata metadata, Platform
349349
{
350350
var editor = metadata.GetEditorDownload(platform, architecture);
351351
if (editor == null) throw new ArgumentException($"No Unity version in cache for {platform}-{architecture}: {metadata.Version}");
352-
return editor.modules.Where(p => p.preSelected).Select(p => p.id);
352+
return editor.modules.Where(p => p.preSelected).Select(p => p.id).Prepend(EditorDownload.ModuleId);
353353
}
354354

355355
/// <summary>

0 commit comments

Comments
 (0)