mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-01 12:41:24 +12:00
Fixed recording timer
This commit is contained in:
parent
804f1beab2
commit
bfd0f073cd
|
@ -169,17 +169,21 @@ public void StartCountdown(int milliseconds)
|
|||
|
||||
public void StartRecordingTimer()
|
||||
{
|
||||
if (IsCountdown)
|
||||
{
|
||||
Timer.Reset();
|
||||
IsCountdown = false;
|
||||
}
|
||||
|
||||
if (Duration > 0)
|
||||
{
|
||||
IsCountdown = true;
|
||||
}
|
||||
|
||||
Countdown = TimeSpan.FromSeconds(Duration);
|
||||
}
|
||||
|
||||
borderColor = Color.FromArgb(0, 255, 0);
|
||||
Refresh();
|
||||
|
||||
Timer.Reset();
|
||||
Timer.Start();
|
||||
timerRefresh.Start();
|
||||
UpdateTimer();
|
||||
|
|
Loading…
Reference in a new issue