mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix: configuration of gpg.ssh.program
was cleared on Preference windows closing.
This commit is contained in:
parent
c713210a9e
commit
16b6e90656
1 changed files with 3 additions and 1 deletions
|
@ -189,7 +189,9 @@ namespace SourceGit.Views
|
||||||
SetIfChanged(config, "commit.gpgsign", EnableGPGCommitSigning ? "true" : "false");
|
SetIfChanged(config, "commit.gpgsign", EnableGPGCommitSigning ? "true" : "false");
|
||||||
SetIfChanged(config, "tag.gpgsign", EnableGPGTagSigning ? "true" : "false");
|
SetIfChanged(config, "tag.gpgsign", EnableGPGTagSigning ? "true" : "false");
|
||||||
SetIfChanged(config, "gpg.format", GPGFormat.Value);
|
SetIfChanged(config, "gpg.format", GPGFormat.Value);
|
||||||
SetIfChanged(config, $"gpg.{GPGFormat.Value}.program", GPGFormat.Value != "ssh" ? GPGExecutableFile : null);
|
|
||||||
|
if (!GPGFormat.Value.Equals("ssh", StringComparison.Ordinal))
|
||||||
|
SetIfChanged(config, $"gpg.{GPGFormat.Value}.program", GPGExecutableFile);
|
||||||
|
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue