mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-05-01 06:15:41 +08:00
enhance: Save Preferences after switched Workspace and closed Preferences (#1073)
This commit is contained in:
@@ -525,6 +525,7 @@ namespace SourceGit.ViewModels
|
||||
}
|
||||
|
||||
_ignoreIndexChange = false;
|
||||
Preferences.Instance.Save();
|
||||
GC.Collect();
|
||||
}
|
||||
|
||||
|
||||
@@ -189,6 +189,7 @@ namespace SourceGit.Views
|
||||
new Commands.Config(null).Set($"gpg.{GPGFormat.Value}.program", GPGExecutableFile);
|
||||
}
|
||||
|
||||
ViewModels.Preferences.Instance.Save();
|
||||
base.OnClosing(e);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user