enhance: do NOT restore fullscreen window on macOS

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-11-01 12:22:47 +08:00
parent 98612b0024
commit 7c5de7e48c
No known key found for this signature in database

View file

@ -78,7 +78,7 @@ namespace SourceGit.Views
var state = ViewModels.Preference.Instance.Layout.LauncherWindowState; var state = ViewModels.Preference.Instance.Layout.LauncherWindowState;
if (state == WindowState.Maximized || state == WindowState.FullScreen) if (state == WindowState.Maximized || state == WindowState.FullScreen)
WindowState = state; WindowState = WindowState.Maximized;
} }
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change) protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)