From 2a85f26754e69693445b7d51d1b143f7c20faa89 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 21 Jun 2024 23:02:28 +0800 Subject: [PATCH] fix: `openpgp` typo --- src/Views/Preference.axaml.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Views/Preference.axaml.cs b/src/Views/Preference.axaml.cs index c70dad85..0bc477f3 100644 --- a/src/Views/Preference.axaml.cs +++ b/src/Views/Preference.axaml.cs @@ -162,8 +162,8 @@ namespace SourceGit.Views if (config.TryGetValue("gpg.format", out var gpgFormat)) GPGFormat = Models.GPGFormat.Supported.Find(x => x.Value == gpgFormat) ?? Models.GPGFormat.Supported[0]; - if (GPGFormat.Value == "opengpg" && config.TryGetValue("gpg.program", out var opengpg)) - GPGExecutableFile = opengpg; + if (GPGFormat.Value == "openpgp" && config.TryGetValue("gpg.program", out var openpgp)) + GPGExecutableFile = openpgp; else if (config.TryGetValue($"gpg.{GPGFormat.Value}.program", out var gpgProgram)) GPGExecutableFile = gpgProgram; @@ -181,8 +181,8 @@ namespace SourceGit.Views if (change.Property == GPGFormatProperty) { var config = new Commands.Config(null).ListAll(); - if (GPGFormat.Value == "opengpg" && config.TryGetValue("gpg.program", out var opengpg)) - GPGExecutableFile = opengpg; + if (GPGFormat.Value == "openpgp" && config.TryGetValue("gpg.program", out var openpgp)) + GPGExecutableFile = openpgp; else if (config.TryGetValue($"gpg.{GPGFormat.Value}.program", out var gpgProgram)) GPGExecutableFile = gpgProgram; }