From a16f5b4983d171deba5aab9258bb272528c42886 Mon Sep 17 00:00:00 2001 From: ThioJoe <12518330+ThioJoe@users.noreply.github.com> Date: Fri, 5 Jul 2024 17:38:16 -0700 Subject: [PATCH] Fix Cancel Button Staying Disabled Fixed bug where cancel button would be disabled after the first time it was used. --- F Key Sender.csproj | 27 +++++++++++++++++++++++++++ MainForm.cs | 3 +++ Properties/AssemblyInfo.cs | 8 ++++---- 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/F Key Sender.csproj b/F Key Sender.csproj index 0abafbd..7195eaf 100644 --- a/F Key Sender.csproj +++ b/F Key Sender.csproj @@ -12,6 +12,21 @@ 512 true true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true AnyCPU @@ -109,5 +124,17 @@ + + + False + Microsoft .NET Framework 4.8 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + \ No newline at end of file diff --git a/MainForm.cs b/MainForm.cs index 8c395f6..31619cf 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -64,6 +64,9 @@ private async void SendKeyCombo(string key) bool shift = checkBoxShift.Checked; bool alt = checkBoxAlt.Checked; + // Enable cancel button even though not visible yet + btnCancel.Enabled = true; + _cts = new CancellationTokenSource(); try diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index c9d00cb..c98368e 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -6,11 +6,11 @@ // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("F Key Sender")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("F13-F24 Key Sender Tool")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("F Key Sender")] -[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.0.1.0")] +[assembly: AssemblyFileVersion("1.0.1.0")]