From 2e64ed530f34b9a8db3b86403454827be2b7ef93 Mon Sep 17 00:00:00 2001 From: shuuryou <36278767+shuuryou@users.noreply.github.com> Date: Thu, 30 Mar 2023 19:41:56 +0200 Subject: [PATCH] Fix Threshold UI elements not disabled while motion detection running. Threshold label and its associated NumericUpDown were not disabled while motion detection is running. --- MainForm.cs | 4 ++++ Properties/AssemblyInfo.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/MainForm.cs b/MainForm.cs index 86790b6..2cbd763 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -179,6 +179,8 @@ private void startButton_Click(object sender, EventArgs e) createMaskButton.Enabled = false; selectVideoFilesLabel.Enabled = false; selectVideoFilesButton.Enabled = false; + thresholdLabel.Enabled = false; + thresholdNumericUpDown.Enabled = false; maxDeviationLabel.Enabled = false; maxDeviationUpDown.Enabled = false; sensitivityLabel.Enabled = false; @@ -206,6 +208,8 @@ private void backgroundWorker_RunWorkerCompleted(object sender, RunWorkerComplet createMaskButton.Enabled = true; selectVideoFilesLabel.Enabled = true; selectVideoFilesButton.Enabled = true; + thresholdLabel.Enabled = true; + thresholdNumericUpDown.Enabled = true; maxDeviationLabel.Enabled = true; maxDeviationUpDown.Enabled = true; sensitivityLabel.Enabled = true; diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 3f54905..8aef1a5 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: ComVisible(false)] [assembly: Guid("df538be2-7335-4385-b860-3b4b318f2130")] -[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.0.0.1")] [assembly: NeutralResourcesLanguageAttribute("en-US")] [assembly: CLSCompliant(true)]