diff --git a/src/Views/Preference.axaml.cs b/src/Views/Preference.axaml.cs index 7b50b9a1..1dd77b50 100644 --- a/src/Views/Preference.axaml.cs +++ b/src/Views/Preference.axaml.cs @@ -1,9 +1,8 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.IO; using System.Threading.Tasks; - +using Avalonia; using Avalonia.Collections; using Avalonia.Controls; using Avalonia.Input; @@ -52,10 +51,13 @@ namespace SourceGit.Views set; } + public static readonly StyledProperty GPGExecutableFileProperty = + AvaloniaProperty.Register(nameof(GPGExecutableFile)); + public string GPGExecutableFile { - get; - set; + get => GetValue(GPGExecutableFileProperty); + set => SetValue(GPGExecutableFileProperty, value); } public string GPGUserKey