Skip to content

Commit 912e49d

Browse files
committed
clean
整理代码
1 parent 59f812a commit 912e49d

15 files changed

Lines changed: 10 additions & 25 deletions

File tree

src/ColorMC.Core/Game/GameArg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ private static async Task<JvmArgRes> MakeJvmArgAsync(this GameSettingObj obj, Lo
501501
jvm.Add("-Dnide8auth.client=true");
502502
break;
503503
case AuthType.AuthlibInjector:
504-
var res = await CoreHttpClient.GetStringAsync(login.Text1)
504+
var res = await CoreHttpClient.GetStringAsync(login.Text1)
505505
?? throw new LaunchException(LaunchError.LoginCoreError);
506506
jvm.Add($"-javaagent:{AuthlibHelper.NowAuthlibInjector}={login.Text1}");
507507
jvm.Add($"-Dauthlibinjector.yggdrasil.prefetched={HashHelper.GenBase64(res)}");

src/ColorMC.Gui/Manager/GameManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ private static GameModSettingObj MakeMod()
287287
{
288288
return new GameModSettingObj
289289
{
290-
Groups = [],
291-
ModName = []
290+
Groups = [],
291+
ModName = []
292292
};
293293
}
294294

src/ColorMC.Gui/Objs/Enums.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public enum ItemsGridType
224224
/// 皮肤动画
225225
/// </summary>
226226
public enum SkinAnimationType
227-
{
227+
{
228228
None,
229229
Walk,
230230
Custom

src/ColorMC.Gui/UI/Controls/Items/GameControl.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private void GameControl_PointerMoved(object? sender, PointerEventArgs e)
120120
{
121121
model.Move(top, e);
122122
}
123-
123+
124124
e.Handled = true;
125125
}
126126
}

src/ColorMC.Gui/UI/Controls/Main/GameGroupControl.axaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
using Avalonia;
22
using Avalonia.Controls;
33
using Avalonia.Input;
4-
using Avalonia.Media.Imaging;
54
using Avalonia.VisualTree;
6-
using ColorMC.Core.LaunchPath;
75
using ColorMC.Gui.Manager;
86
using ColorMC.Gui.UI.Controls.Items;
97
using ColorMC.Gui.UI.Flyouts;

src/ColorMC.Gui/UI/Controls/Main/MainGamesControl.axaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
using System.Diagnostics;
31
using Avalonia;
42
using Avalonia.Controls;
53
using Avalonia.Input;

src/ColorMC.Gui/UI/Flyouts/UserFlyout.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Avalonia.Controls;
2-
using ColorMC.Core.Objs;
32
using ColorMC.Gui.UI.Model;
43
using ColorMC.Gui.UI.Model.Items;
54
using ColorMC.Gui.Utils;

src/ColorMC.Gui/UI/Model/GameEdit/GameEditTab4Model.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
using System.IO;
55
using System.Linq;
66
using System.Text;
7-
using System.Threading.Tasks;
87
using Avalonia.Controls;
98
using Avalonia.Controls.Models.TreeDataGrid;
109
using Avalonia.Input;
1110
using ColorMC.Core.Helpers;
12-
using ColorMC.Core.Net.Apis;
1311
using ColorMC.Core.Objs;
1412
using ColorMC.Gui.Manager;
1513
using ColorMC.Gui.Objs;
@@ -889,7 +887,7 @@ public async void SetGroup(IEnumerable<ModNodeModel> mods)
889887
}
890888

891889
if (item1.Value.Count == 0)
892-
{
890+
{
893891
_setting.Mod.Groups.Remove(item1.Key);
894892
}
895893
}

src/ColorMC.Gui/UI/Model/GameEdit/GameEditTab8Model.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.Collections.Generic;
32
using System.Collections.ObjectModel;
43
using System.Linq;

src/ColorMC.Gui/UI/Model/IDragTop.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
using ColorMC.Gui.UI.Model.Items;
1+
using ColorMC.Gui.UI.Model.Items;
52

63
namespace ColorMC.Gui.UI.Model;
74

0 commit comments

Comments
 (0)