From 972b9407424fbbef4081576ddeaa219652c8d6ea Mon Sep 17 00:00:00 2001 From: Gadfly Date: Fri, 12 Apr 2024 19:37:06 +0800 Subject: [PATCH] fix: GPG executable file input didn't echo after selected --- src/Views/Preference.axaml.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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