mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00: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…
Add table
Add a link
Reference in a new issue