mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
fix: repository settings did not saved correctly when closing app (#459)
This commit is contained in:
parent
9b47198229
commit
2d611cf988
2 changed files with 16 additions and 5 deletions
|
@ -221,11 +221,7 @@ namespace SourceGit.Views
|
|||
|
||||
protected override void OnClosing(WindowClosingEventArgs e)
|
||||
{
|
||||
var pref = ViewModels.Preference.Instance;
|
||||
pref.Layout.LauncherWidth = Width;
|
||||
pref.Layout.LauncherHeight = Height;
|
||||
pref.Save();
|
||||
|
||||
(DataContext as ViewModels.Launcher)?.Quit(Width, Height);
|
||||
base.OnClosing(e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue