Skip to content

Commit acc6c80

Browse files
committed
up
1 parent abf72a7 commit acc6c80

39 files changed

Lines changed: 48 additions & 95 deletions

src/ColorMC.Core/ColorMC.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<PackageReference Include="Tomlyn" Version="0.19.0" />
2828
<PackageReference Include="Ae.Dns.Client" Version="3.1.0" />
2929
<PackageReference Include="Ae.Dns.Protocol" Version="3.1.0" />
30-
<PackageReference Include="SharpCompress" Version="0.41.0" />
30+
<PackageReference Include="SharpCompress" Version="0.42.1" />
3131
</ItemGroup>
3232

3333
<ItemGroup>

src/ColorMC.Gui/ColorMC.Gui.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@
364364
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.3.0" />
365365
<PackageReference Include="Avalonia.Controls.TreeDataGrid" Version="11.1.1" />
366366
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
367-
<PackageReference Include="DialogHost.Avalonia" Version="0.10.2" />
367+
<PackageReference Include="DialogHost.Avalonia" Version="0.10.3" />
368368
<PackageReference Include="Markdig" Version="0.44.0" />
369369
<PackageReference Include="MinecraftSkinRender" Version="1.0.0" />
370370
<PackageReference Include="MinecraftSkinRender.Image" Version="1.0.0" />

src/ColorMC.Gui/Manager/GameManager.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.IO;
4-
using System.Linq;
54
using System.Threading;
65
using ColorMC.Core;
76
using ColorMC.Core.Config;
@@ -13,7 +12,6 @@
1312
using ColorMC.Gui.Joystick;
1413
using ColorMC.Gui.Objs;
1514
using ColorMC.Gui.Objs.Config;
16-
using ColorMC.Gui.UI.Model.Items;
1715
using ColorMC.Gui.Utils;
1816

1917
namespace ColorMC.Gui.Manager;
@@ -119,7 +117,7 @@ public static bool IsDownload(Guid game, SourceItemObj obj)
119117
}
120118
}
121119
}
122-
120+
123121
return false;
124122
}
125123

@@ -289,7 +287,7 @@ private static GameModSettingObj MakeMod()
289287
{
290288
return new GameModSettingObj
291289
{
292-
290+
293291
};
294292
}
295293

src/ColorMC.Gui/Manager/UserManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public static void Init()
2525
if (GuiConfigUtils.Config.LastUser is { } last)
2626
{
2727
s_select = AuthDatabase.Get(last.UUID, last.Type);
28+
EventManager.OnLastUserChange(s_select != null);
2829
}
2930
}
3031

src/ColorMC.Gui/Objs/Enums.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ public enum LanguageType
222222
/// </summary>
223223
public enum ItemsGridType
224224
{
225-
List,
226-
ListInfo,
227-
Grid,
225+
List,
226+
ListInfo,
227+
Grid,
228228
GridInfo
229229
}

src/ColorMC.Gui/Objs/SourceItemObj.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Collections.Generic;
2-
using System.Linq;
3-
using ColorMC.Core.Objs;
1+
using ColorMC.Core.Objs;
42

53
namespace ColorMC.Gui.Objs;
64

src/ColorMC.Gui/UI/Animations/MainMenuIn.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42
using System.Threading;
53
using System.Threading.Tasks;
64
using Avalonia;

src/ColorMC.Gui/UI/Animations/SubPageOut.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42
using System.Threading;
53
using System.Threading.Tasks;
64
using Avalonia;

src/ColorMC.Gui/UI/Controls/Add/AddDownloadListControl.axaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.ComponentModel;
33
using Avalonia.Controls;
4-
using ColorMC.Gui.Manager;
54
using ColorMC.Gui.UI.Model.Add;
65

76
namespace ColorMC.Gui.UI.Controls.Add;

src/ColorMC.Gui/UI/Controls/Add/AddGameControl.axaml.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private async void AnimateSubPageIn()
4646
_animationCts?.Dispose();
4747
_animationCts = new CancellationTokenSource();
4848
var token = _animationCts.Token;
49-
49+
5050
Content1.IsVisible = true;
5151

5252
try
@@ -55,7 +55,7 @@ private async void AnimateSubPageIn()
5555
}
5656
catch (OperationCanceledException)
5757
{
58-
58+
5959
}
6060
}
6161

@@ -80,7 +80,7 @@ private async void AnimateSubPageOut()
8080
}
8181
catch (OperationCanceledException)
8282
{
83-
83+
8484
}
8585
}
8686

@@ -97,13 +97,13 @@ private async void AnimateMainMenuIn()
9797
// 确保可见
9898
MainMenuGrid.IsVisible = true;
9999

100-
try
101-
{
102-
await MainMenuIn.Start(MainMenuGrid, token);
103-
}
104-
catch (OperationCanceledException)
105-
{
106-
100+
try
101+
{
102+
await MainMenuIn.Start(MainMenuGrid, token);
103+
}
104+
catch (OperationCanceledException)
105+
{
106+
107107
}
108108
}
109109

@@ -130,9 +130,9 @@ private async void AnimateMainMenuOut()
130130
MainMenuGrid.IsVisible = false;
131131
}
132132
}
133-
catch (OperationCanceledException)
134-
{
135-
133+
catch (OperationCanceledException)
134+
{
135+
136136
}
137137
}
138138

0 commit comments

Comments
 (0)