diff --git a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/MainView.axaml b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/MainView.axaml
index 00d586f18..8194287ca 100644
--- a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/MainView.axaml
+++ b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/MainView.axaml
@@ -178,6 +178,9 @@
+
+
+
diff --git a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/GameRelatedPage.axaml b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/GameRelatedPage.axaml
new file mode 100644
index 000000000..0e203fc5c
--- /dev/null
+++ b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/GameRelatedPage.axaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
diff --git a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/GameRelatedPage.axaml.cs b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/GameRelatedPage.axaml.cs
new file mode 100644
index 000000000..2005cd0b3
--- /dev/null
+++ b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/GameRelatedPage.axaml.cs
@@ -0,0 +1,19 @@
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+using System.Application.UI.ViewModels;
+
+namespace System.Application.UI.Views.Pages
+{
+ public class GameRelatedPage : UserControl
+ {
+ public GameRelatedPage()
+ {
+ InitializeComponent();
+ }
+
+ private void InitializeComponent()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ST.Client.Desktop.Avalonia/ST.Client.Desktop.Avalonia.csproj b/src/ST.Client.Desktop.Avalonia/ST.Client.Desktop.Avalonia.csproj
index a15904ec4..e41fefa30 100644
--- a/src/ST.Client.Desktop.Avalonia/ST.Client.Desktop.Avalonia.csproj
+++ b/src/ST.Client.Desktop.Avalonia/ST.Client.Desktop.Avalonia.csproj
@@ -53,4 +53,10 @@
+
+
+
+ GameRelatedPage.axaml
+
+
\ No newline at end of file
diff --git a/src/ST.Client.Desktop/Models/Settings/UISettings.cs b/src/ST.Client.Desktop/Models/Settings/UISettings.cs
index 05abb86d3..bae4bb5c9 100644
--- a/src/ST.Client.Desktop/Models/Settings/UISettings.cs
+++ b/src/ST.Client.Desktop/Models/Settings/UISettings.cs
@@ -74,7 +74,7 @@ namespace System.Application.Models.Settings
/// 所有窗口位置记忆集合
///
public static SerializableProperty> WindowSizePositions { get; }
- = new SerializableProperty>(GetKey(), Providers.Local, new Dictionary()) { AutoSave = true };
+ = new SerializableProperty>(GetKey(), Providers.Local, new Dictionary()) { AutoSave = false };
private static string GetKey([CallerMemberName] string propertyName = "")
{
diff --git a/src/ST.Client.Desktop/Services/Mvvm/SteamConnectService.cs b/src/ST.Client.Desktop/Services/Mvvm/SteamConnectService.cs
index 5658b38b3..62d6992b9 100644
--- a/src/ST.Client.Desktop/Services/Mvvm/SteamConnectService.cs
+++ b/src/ST.Client.Desktop/Services/Mvvm/SteamConnectService.cs
@@ -170,7 +170,7 @@ namespace System.Application.Services
{
IsConnectToSteam = false;
}
- await Task.Delay(2000);
+ Thread.Sleep(2000);
}
}
catch (Exception ex)
diff --git a/src/ST.Client.Desktop/UI/ViewModels/MainWindowViewModel.cs b/src/ST.Client.Desktop/UI/ViewModels/MainWindowViewModel.cs
index bfe0d61eb..93a1c86a3 100644
--- a/src/ST.Client.Desktop/UI/ViewModels/MainWindowViewModel.cs
+++ b/src/ST.Client.Desktop/UI/ViewModels/MainWindowViewModel.cs
@@ -103,7 +103,7 @@ namespace System.Application.UI.ViewModels
public void Initialize()
{
Threading.Thread.CurrentThread.IsBackground = true;
- SteamConnectService.Current.Initialize();
+ //SteamConnectService.Current.Initialize();
ProxyService.Current.Initialize();
AuthService.Current.Initialize();
diff --git a/src/ST.Client.Desktop/UI/ViewModels/Pages/GameListPageViewModel.cs b/src/ST.Client.Desktop/UI/ViewModels/Pages/GameListPageViewModel.cs
index 371082607..14de05970 100644
--- a/src/ST.Client.Desktop/UI/ViewModels/Pages/GameListPageViewModel.cs
+++ b/src/ST.Client.Desktop/UI/ViewModels/Pages/GameListPageViewModel.cs
@@ -113,12 +113,12 @@ namespace System.Application.UI.ViewModels
});
}
- //internal override async void Activation()
- //{
- // if (IsFirstActivation)
- // SteamConnectService.Current.Initialize();
- // base.Activation();
- //}
+ internal override void Activation()
+ {
+ if (IsFirstActivation)
+ SteamConnectService.Current.Initialize();
+ base.Activation();
+ }
private bool _IsOpenFilter;
public bool IsOpenFilter