diff --git a/src/ST.Client.Desktop.Avalonia.App/App.axaml.cs b/src/ST.Client.Desktop.Avalonia.App/App.axaml.cs index 255dedc10..2dfb2ee88 100644 --- a/src/ST.Client.Desktop.Avalonia.App/App.axaml.cs +++ b/src/ST.Client.Desktop.Avalonia.App/App.axaml.cs @@ -150,15 +150,6 @@ namespace System.Application.UI #if StartupTrace StartupTrace.Restart("SettingsHost.Init"); #endif - -#if !UI_DEMO - if (GeneralSettings.IsStartupAppMinimized.Value) - { - Program.IsMinimize = true; - if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) - desktop.MainWindow = null; - } -#endif Theme = (AppTheme)UISettings.Theme.Value; #if StartupTrace StartupTrace.Restart("Theme"); @@ -185,6 +176,14 @@ namespace System.Application.UI compositeDisposable.Add(SteamConnectService.Current.Dispose); #endregion +#if !UI_DEMO + if (GeneralSettings.IsStartupAppMinimized.Value) + { + Program.IsMinimize = true; + if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) + desktop.MainWindow = null; + } +#endif MainWindow = new MainWindow { DataContext = windowService.MainWindow, diff --git a/src/ST.Client.Desktop.Avalonia.App/ST.Client.Desktop.Avalonia.App.csproj b/src/ST.Client.Desktop.Avalonia.App/ST.Client.Desktop.Avalonia.App.csproj index 49907c73b..33e08f970 100644 --- a/src/ST.Client.Desktop.Avalonia.App/ST.Client.Desktop.Avalonia.App.csproj +++ b/src/ST.Client.Desktop.Avalonia.App/ST.Client.Desktop.Avalonia.App.csproj @@ -1,103 +1,103 @@ - - WinExe - - net6.0 - false - - System.Application.UI - Steam++ - Properties\app.manifest - + + WinExe + + net6.0 + false + + System.Application.UI + Steam++ + Properties\app.manifest + - - Exe - + + Exe + - - - - - WINDOWS;$(DefineConstants) - ..\ST.Client.Desktop.Avalonia\Application\UI\Assets\Icon.ico - Properties\app.manifest - - AnyCPU;x86 - x86 - - win7-x86 - - - + AnyCPU;x86 + x86 + + win7-x86 + + + - - MAC;$(DefineConstants) - + + MAC;$(DefineConstants) + - - true - false - - false - link - true - - false - false - false - false - false - false - true - none - false - + + true + false + + false + link + true + + false + false + false + false + false + false + true + none + false + - - - - - Properties\AssemblyInfo.cs - - + + + + Properties\AssemblyInfo.cs + + - - - - - + + + + + - - - + + + - - - - + + + - - - + + + - - - - - - %(Filename) - - - Designer - - - + + + %(Filename) + + + Designer + + + - - - - steam++.visualelementsmanifest.xml - PreserveNewest - - - Assets\VisualElements_150.png - PreserveNewest - - - Assets\VisualElements_70.png - PreserveNewest - - + + + + steam++.visualelementsmanifest.xml + PreserveNewest + + + Assets\VisualElements_150.png + PreserveNewest + + + Assets\VisualElements_70.png + PreserveNewest + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + \ No newline at end of file diff --git a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/CommunityProxyPage.axaml b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/CommunityProxyPage.axaml index da4c257c1..c9c113a27 100644 --- a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/CommunityProxyPage.axaml +++ b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/CommunityProxyPage.axaml @@ -89,8 +89,8 @@ - - + + diff --git a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/LoginOrRegisterWindow.axaml b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/LoginOrRegisterWindow.axaml index 4cfc9903b..6ec947683 100644 --- a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/LoginOrRegisterWindow.axaml +++ b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/LoginOrRegisterWindow.axaml @@ -22,58 +22,58 @@ x:DataType="vm:LoginOrRegisterWindowViewModel" x:CompileBindings="True" Title="{Binding Title}"> + + - - - - - - - - - - - - - + - - -