mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
refactor: use custom color picker instead of Avalonia.Controls.ColorPicker
This commit is contained in:
parent
bede3663ec
commit
69117e8ee9
6 changed files with 257 additions and 9 deletions
|
@ -431,6 +431,9 @@ namespace SourceGit.ViewModels
|
|||
|
||||
public void Save()
|
||||
{
|
||||
if (!Native.OS.DataDir.Contains("AppData"))
|
||||
throw new Exception("xxx");
|
||||
|
||||
var file = Path.Combine(Native.OS.DataDir, "preference.json");
|
||||
var data = JsonSerializer.Serialize(this, JsonCodeGen.Default.Preference);
|
||||
File.WriteAllText(file, data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue