mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix: openpgp
typo
This commit is contained in:
parent
e1cdbae0ab
commit
2a85f26754
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue