Skip to content

Commit 41cf1d6

Browse files
committed
Set GUI state for some actions
1 parent 163c865 commit 41cf1d6

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

SignToolGUI/Forms/ChangelogForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private void PopulateChangelog()
2727
" (supported for .pfx and Certificate Store cert´s)\n" +
2828
" - Added some more error handling and logging\n" +
2929
" - Added support for more v. of the Windows SDK\n" +
30-
" - Added a 'Select all' option to mass select files to sign\n" +
30+
" - Added a 'Select all' option to mass select/unselect files to sign\n" +
3131
" - Some small minor UI changes\n\n" +
3232
" Version 1.3.0.0 (18-07-2024):\n" +
3333
" - Add support for Microsoft Trusted Signing\n" +

SignToolGUI/Forms/MainForm.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,15 @@ private void RadioButtonSelectCertificateLocation_CheckedChanged(object sender,
458458
checkBoxTimestamp.Checked = true;
459459
checkBoxTimestamp.Enabled = false;
460460

461+
// Disable the signtool path text box and browse button
462+
textBoxSignToolPath.Enabled = false;
463+
buttonBrowseSignTool.Enabled = false;
464+
465+
// Set the timestamp group box text and label text
461466
groupBoxTimestamp.Text = @"Trusted Signing Endpoint";
462467
labelTimeStampServer.Text = @"Endpoint URL:";
463468

469+
// Set the tooltip for the timestamp checkbox
464470
toolTip.SetToolTip(checkBoxTimestamp, "Trusted Signing requires a timestamp. This option is disabled for Trusted Signing.");
465471
}
466472
else
@@ -481,6 +487,11 @@ private void RadioButtonSelectCertificateLocation_CheckedChanged(object sender,
481487
// Enable the timestamp checkbox
482488
checkBoxTimestamp.Enabled = true;
483489

490+
// Enable the signtool path text box and browse button
491+
textBoxSignToolPath.Enabled = true;
492+
buttonBrowseSignTool.Enabled = true;
493+
494+
// Set the timestamp group box text and label text
484495
groupBoxTimestamp.Text = @"Timestamp URL:";
485496
labelTimeStampServer.Text = @"Timestamp";
486497

@@ -502,7 +513,7 @@ private void RadioButtonSelectCertificateLocation_CheckedChanged(object sender,
502513
}
503514
else if (radioButtonTrustedSigning.Checked)
504515
{
505-
labelCertificateInformation.Text = @"Trusted Signing Certificate - set details in Trusted Signing account";
516+
labelCertificateInformation.Text = @"Trusted Signing Certificate - set details in Trusted Signing account located in the Azure Portal";
506517
}
507518
else
508519
{

0 commit comments

Comments
 (0)