fix: openpgp typo

This commit is contained in:
leo 2024-06-21 23:02:28 +08:00
parent e1cdbae0ab
commit 2a85f26754

View file

@ -162,8 +162,8 @@ namespace SourceGit.Views
if (config.TryGetValue("gpg.format", out var gpgFormat)) if (config.TryGetValue("gpg.format", out var gpgFormat))
GPGFormat = Models.GPGFormat.Supported.Find(x => x.Value == gpgFormat) ?? Models.GPGFormat.Supported[0]; GPGFormat = Models.GPGFormat.Supported.Find(x => x.Value == gpgFormat) ?? Models.GPGFormat.Supported[0];
if (GPGFormat.Value == "opengpg" && config.TryGetValue("gpg.program", out var opengpg)) if (GPGFormat.Value == "openpgp" && config.TryGetValue("gpg.program", out var openpgp))
GPGExecutableFile = opengpg; GPGExecutableFile = openpgp;
else if (config.TryGetValue($"gpg.{GPGFormat.Value}.program", out var gpgProgram)) else if (config.TryGetValue($"gpg.{GPGFormat.Value}.program", out var gpgProgram))
GPGExecutableFile = gpgProgram; GPGExecutableFile = gpgProgram;
@ -181,8 +181,8 @@ namespace SourceGit.Views
if (change.Property == GPGFormatProperty) if (change.Property == GPGFormatProperty)
{ {
var config = new Commands.Config(null).ListAll(); var config = new Commands.Config(null).ListAll();
if (GPGFormat.Value == "opengpg" && config.TryGetValue("gpg.program", out var opengpg)) if (GPGFormat.Value == "openpgp" && config.TryGetValue("gpg.program", out var openpgp))
GPGExecutableFile = opengpg; GPGExecutableFile = openpgp;
else if (config.TryGetValue($"gpg.{GPGFormat.Value}.program", out var gpgProgram)) else if (config.TryGetValue($"gpg.{GPGFormat.Value}.program", out var gpgProgram))
GPGExecutableFile = gpgProgram; GPGExecutableFile = gpgProgram;
} }