mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
enhance: remember last WindowState of Launcher
This commit is contained in:
parent
7c79340cc1
commit
662c9e1580
2 changed files with 7 additions and 0 deletions
|
@ -22,6 +22,12 @@ namespace SourceGit.ViewModels
|
||||||
set;
|
set;
|
||||||
} = 720;
|
} = 720;
|
||||||
|
|
||||||
|
public WindowState LauncherWindowState
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
} = WindowState.Normal;
|
||||||
|
|
||||||
[JsonConverter(typeof(GridLengthConverter))]
|
[JsonConverter(typeof(GridLengthConverter))]
|
||||||
public GridLength RepositorySidebarWidth
|
public GridLength RepositorySidebarWidth
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
MinWidth="1280" MinHeight="720"
|
MinWidth="1280" MinHeight="720"
|
||||||
Width="{Binding Source={x:Static vm:Preference.Instance}, Path=Layout.LauncherWidth, Mode=TwoWay}"
|
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}"
|
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"
|
WindowStartupLocation="CenterScreen"
|
||||||
ExtendClientAreaToDecorationsHint="True"
|
ExtendClientAreaToDecorationsHint="True"
|
||||||
ExtendClientAreaChromeHints="NoChrome"
|
ExtendClientAreaChromeHints="NoChrome"
|
||||||
|
|
Loading…
Reference in a new issue