diff --git a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/GameListPage/HideAppWindow.axaml b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/GameListPage/HideAppWindow.axaml
index 5b7e48257..53642f6cb 100644
--- a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/GameListPage/HideAppWindow.axaml
+++ b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/GameListPage/HideAppWindow.axaml
@@ -27,12 +27,13 @@
Margin="0 0 145 0" Height="30"
HorizontalAlignment="Right"
VerticalAlignment="Top">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/ST.Client.Desktop/Models/SteamAFKApps.cs b/src/ST.Client.Desktop/Models/SteamAFKApps.cs
deleted file mode 100644
index 7db8b79a1..000000000
--- a/src/ST.Client.Desktop/Models/SteamAFKApps.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-
-using MPIgnore = MessagePack.IgnoreMemberAttribute;
-using MPKey = MessagePack.KeyAttribute;
-using MPObj = MessagePack.MessagePackObjectAttribute;
-using N_JsonIgnore = Newtonsoft.Json.JsonIgnoreAttribute;
-using N_JsonProperty = Newtonsoft.Json.JsonPropertyAttribute;
-using S_JsonIgnore = System.Text.Json.Serialization.JsonIgnoreAttribute;
-using S_JsonProperty = System.Text.Json.Serialization.JsonPropertyNameAttribute;
-namespace System.Application.Models
-{
- [MPObj]
- public class SteamAFKApps
- {
- [MPKey(1)]
- [N_JsonProperty("1")]
- [S_JsonProperty("1")]
- public uint AppId { get; set; }
- [MPKey(2)]
- [N_JsonProperty("2")]
- [S_JsonProperty("2")]
- public string? Name { get; set; }
- }
-}
diff --git a/src/ST.Client.Desktop/Models/SteamHideApps.cs b/src/ST.Client.Desktop/Models/SteamHideApps.cs
deleted file mode 100644
index 37af3fa94..000000000
--- a/src/ST.Client.Desktop/Models/SteamHideApps.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-
-using ReactiveUI;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-using MPIgnore = MessagePack.IgnoreMemberAttribute;
-using MPKey = MessagePack.KeyAttribute;
-using MPObj = MessagePack.MessagePackObjectAttribute;
-using N_JsonIgnore = Newtonsoft.Json.JsonIgnoreAttribute;
-using N_JsonProperty = Newtonsoft.Json.JsonPropertyAttribute;
-using S_JsonIgnore = System.Text.Json.Serialization.JsonIgnoreAttribute;
-using S_JsonProperty = System.Text.Json.Serialization.JsonPropertyNameAttribute;
-namespace System.Application.Models
-{
- [MPObj]
- public class SteamHideApps : ReactiveObject
- {
- [MPKey(1)]
- [N_JsonProperty("1")]
- [S_JsonProperty("1")]
- public uint AppId { get; set; }
- [MPKey(2)]
- [N_JsonProperty("2")]
- [S_JsonProperty("2")]
- public string? Name { get; set; }
- [MPIgnore]
- [N_JsonIgnore]
- [S_JsonIgnore]
- public bool Enable { get; set; } = false;
- }
-}
diff --git a/src/ST.Client.Desktop/UI/Resx/AppResources.Designer.cs b/src/ST.Client.Desktop/UI/Resx/AppResources.Designer.cs
index 42aa2357d..0cd8692e5 100644
--- a/src/ST.Client.Desktop/UI/Resx/AppResources.Designer.cs
+++ b/src/ST.Client.Desktop/UI/Resx/AppResources.Designer.cs
@@ -2070,6 +2070,15 @@ namespace System.Application.UI.Resx {
}
}
+ ///
+ /// 查找类似 刷新列表 的本地化字符串。
+ ///
+ public static string RefreshList {
+ get {
+ return ResourceManager.GetString("RefreshList", resourceCulture);
+ }
+ }
+
///
/// 查找类似 刷新成功 的本地化字符串。
///
diff --git a/src/ST.Client.Desktop/UI/Resx/AppResources.resx b/src/ST.Client.Desktop/UI/Resx/AppResources.resx
index 030173353..5440516a5 100644
--- a/src/ST.Client.Desktop/UI/Resx/AppResources.resx
+++ b/src/ST.Client.Desktop/UI/Resx/AppResources.resx
@@ -792,6 +792,9 @@
刷新
+
+ 刷新列表
+
刷新成功
diff --git a/src/ST.Client.Desktop/UI/ViewModels/Windows/GameListPage/IdleAppWindowViewModel.cs b/src/ST.Client.Desktop/UI/ViewModels/Windows/GameListPage/IdleAppWindowViewModel.cs
index 48e43c009..3f145a8dd 100644
--- a/src/ST.Client.Desktop/UI/ViewModels/Windows/GameListPage/IdleAppWindowViewModel.cs
+++ b/src/ST.Client.Desktop/UI/ViewModels/Windows/GameListPage/IdleAppWindowViewModel.cs
@@ -1,6 +1,10 @@
using Newtonsoft.Json.Linq;
+using ReactiveUI;
using System.Application.Models;
+using System.Application.Models.Settings;
using System.Application.UI.Resx;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
using System.Properties;
namespace System.Application.UI.ViewModels
@@ -10,10 +14,20 @@ namespace System.Application.UI.ViewModels
public IdleAppWindowViewModel() : base()
{
Title = ThisAssembly.AssemblyTrademark + " | " + AppResources.GameList_EditAppInfo;
+
+ Refresh_Click();
+ }
+ public ObservableCollection> _IdleGameList = new();
+ public ObservableCollection> IdleGameList
+ {
+ get => _IdleGameList;
+ set => this.RaiseAndSetIfChanged(ref _IdleGameList, value);
}
-
-
+ public void Refresh_Click()
+ {
+ IdleGameList = new ObservableCollection>(GameLibrarySettings.AFKAppList.Value!);
+ }
}
}
\ No newline at end of file