mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
enhance: support save RepositoryNode changes instantly
This commit is contained in:
parent
28b6ce4993
commit
c85293c86a
3 changed files with 15 additions and 11 deletions
|
@ -75,6 +75,12 @@ namespace SourceGit
|
|||
AvaloniaXamlLoader.Load(this);
|
||||
|
||||
var pref = ViewModels.Preference.Instance;
|
||||
pref.PropertyChanged += (_1, _2) =>
|
||||
{
|
||||
#pragma warning disable CS4014
|
||||
pref.SaveAsync();
|
||||
#pragma warning restore CS4014
|
||||
};
|
||||
SetLocale(pref.Locale);
|
||||
SetTheme(pref.Theme, pref.ThemeOverrides);
|
||||
SetFonts(pref.DefaultFontFamily, pref.MonospaceFontFamily, pref.OnlyUseMonoFontInEditor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue