mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
enhance: save preference.json instantly
This commit is contained in:
parent
fefcda7246
commit
28b6ce4993
3 changed files with 43 additions and 4 deletions
|
@ -138,7 +138,7 @@ namespace SourceGit.Views
|
|||
|
||||
if (!GPGFormat.Value.Equals("ssh", StringComparison.Ordinal))
|
||||
SetIfChanged(config, $"gpg.{GPGFormat.Value}.program", GPGExecutableFile);
|
||||
|
||||
|
||||
base.OnClosing(e);
|
||||
}
|
||||
|
||||
|
@ -261,7 +261,9 @@ namespace SourceGit.Views
|
|||
if (sender is CheckBox box)
|
||||
{
|
||||
ViewModels.Preference.Instance.UseSystemWindowFrame = box.IsChecked == true;
|
||||
ViewModels.Preference.Instance.Save();
|
||||
#pragma warning disable CS4014
|
||||
ViewModels.Preference.Instance.SaveAsync();
|
||||
#pragma warning restore CS4014
|
||||
|
||||
var dialog = new ConfirmRestart();
|
||||
App.OpenDialog(dialog);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue