Skip to content

Commit

Permalink
Fix Threshold UI elements not disabled while motion detection running.
Browse files Browse the repository at this point in the history
Threshold label and its associated NumericUpDown were not disabled while motion detection is running.
  • Loading branch information
shuuryou committed Mar 30, 2023
1 parent d78c151 commit 2e64ed5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down

0 comments on commit 2e64ed5

Please sign in to comment.