diff --git a/src/ViewModels/LayoutInfo.cs b/src/ViewModels/LayoutInfo.cs index f22258e9..80ce00a8 100644 --- a/src/ViewModels/LayoutInfo.cs +++ b/src/ViewModels/LayoutInfo.cs @@ -22,6 +22,12 @@ namespace SourceGit.ViewModels set; } = 720; + public WindowState LauncherWindowState + { + get; + set; + } = WindowState.Normal; + [JsonConverter(typeof(GridLengthConverter))] public GridLength RepositorySidebarWidth { diff --git a/src/Views/Launcher.axaml b/src/Views/Launcher.axaml index 4399b472..b630ee9f 100644 --- a/src/Views/Launcher.axaml +++ b/src/Views/Launcher.axaml @@ -17,6 +17,7 @@ MinWidth="1280" MinHeight="720" Width="{Binding Source={x:Static vm:Preference.Instance}, Path=Layout.LauncherWidth, Mode=TwoWay}" Height="{Binding Source={x:Static vm:Preference.Instance}, Path=Layout.LauncherHeight, Mode=TwoWay}" + WindowState="{Binding Source={x:Static vm:Preference.Instance}, Path=Layout.LauncherWindowState, Mode=TwoWay}" WindowStartupLocation="CenterScreen" ExtendClientAreaToDecorationsHint="True" ExtendClientAreaChromeHints="NoChrome"