Skip to content

Commit a042945

Browse files
authored
Merge pull request #70 from gadfly3173/fix/gpg-select
fix: GPG executable file input didn't echo after selected
2 parents 2d5e048 + 972b940 commit a042945

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Views/Preference.axaml.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Globalization;
4-
using System.IO;
54
using System.Threading.Tasks;
6-
5+
using Avalonia;
76
using Avalonia.Collections;
87
using Avalonia.Controls;
98
using Avalonia.Input;
@@ -52,10 +51,13 @@ public bool EnableGPGSigning
5251
set;
5352
}
5453

54+
public static readonly StyledProperty<string> GPGExecutableFileProperty =
55+
AvaloniaProperty.Register<Preference, string>(nameof(GPGExecutableFile));
56+
5557
public string GPGExecutableFile
5658
{
57-
get;
58-
set;
59+
get => GetValue(GPGExecutableFileProperty);
60+
set => SetValue(GPGExecutableFileProperty, value);
5961
}
6062

6163
public string GPGUserKey

0 commit comments

Comments
 (0)