Skip to content

Commit 16b6e90

Browse files
committed
fix: configuration of gpg.ssh.program was cleared on Preference windows closing.
1 parent c713210 commit 16b6e90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Views/Preference.axaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ private void CloseWindow(object sender, RoutedEventArgs e)
189189
SetIfChanged(config, "commit.gpgsign", EnableGPGCommitSigning ? "true" : "false");
190190
SetIfChanged(config, "tag.gpgsign", EnableGPGTagSigning ? "true" : "false");
191191
SetIfChanged(config, "gpg.format", GPGFormat.Value);
192-
SetIfChanged(config, $"gpg.{GPGFormat.Value}.program", GPGFormat.Value != "ssh" ? GPGExecutableFile : null);
192+
193+
if (!GPGFormat.Value.Equals("ssh", StringComparison.Ordinal))
194+
SetIfChanged(config, $"gpg.{GPGFormat.Value}.program", GPGExecutableFile);
193195

194196
Close();
195197
}

0 commit comments

Comments
 (0)