Skip to content

Commit

Permalink
up 修复整合包下载崩溃
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Dec 15, 2023
1 parent 0e9813a commit fac7b46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ColorMC.Core/CoreMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace ColorMC.Core;
public static class ColorMCCore
{
public const string TopVersion = "A23";
public const string DateVersion = "20231213";
public const string DateVersion = "20231215";

public const string Version = $"{TopVersion}.{DateVersion}";

Expand Down
5 changes: 3 additions & 2 deletions src/ColorMC.Gui/UI/Model/Add/AddModPackControlModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,19 +275,20 @@ public void Install()

public void Install1(FileDisplayObj data)
{
var select = _last;
WindowClose();
App.ShowAddGame(null);
if (data.SourceType == SourceType.CurseForge)
{
App.AddGameWindow?.Install(
(data.Data as CurseForgeModObj.Data)!,
(_last!.Data?.Data as CurseForgeObjList.Data)!);
(select!.Data?.Data as CurseForgeObjList.Data)!);
}
else if (data.SourceType == SourceType.Modrinth)
{
App.AddGameWindow?.Install(
(data.Data as ModrinthVersionObj)!,
(_last!.Data?.Data as ModrinthSearchObj.Hit)!);
(select!.Data?.Data as ModrinthSearchObj.Hit)!);
}
}

Expand Down

0 comments on commit fac7b46

Please sign in to comment.