Skip to content

Commit 4dc2299

Browse files
committed
Fix not being able to target 00:00:00 in timeofday mode
1 parent f398b63 commit 4dc2299

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ShutdownTimer/Menu.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ private void StartButton_Click(object sender, EventArgs e)
194194
errMessages += "Please select a valid action from the dropdown menu!\n\n";
195195
}
196196

197-
// Check if all time values are zero
198-
if (hoursNumericUpDown.Value == 0 && minutesNumericUpDown.Value == 0 && secondsNumericUpDown.Value == 0)
197+
// Check if all time values are zero when in countdown mode
198+
if (hoursNumericUpDown.Value == 0 && minutesNumericUpDown.Value == 0 && secondsNumericUpDown.Value == 0 && countdownModeRadioButton.Checked)
199199
{
200-
errMessages += "The timer cannot start at 0!\n\n";
200+
errMessages += "The timer cannot start at 0 when in countdown mode!\n\n";
201201
}
202202

203203
// Respective check for either countdown or timeOfDay mode

0 commit comments

Comments
 (0)