Skip to content

Commit

Permalink
Reset *if* timer triggers too late
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghus committed Jan 16, 2014
1 parent b12e56c commit 41b9170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qml/harbour-kitchentimer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ ApplicationWindow {
function reset() {
if(timer.running) {
timer.stop();
isRunning = false;
}
isRunning = false;
seconds = minutes = 0;
}

Expand Down Expand Up @@ -240,7 +240,7 @@ ApplicationWindow {

if(passed >= _remaining) {
console.warn('Time has passed!', passed - _remaining, 'seconds');
seconds = minutes = 0;
reset();
alarm.play();
isRunning = false;
} else {
Expand Down

0 comments on commit 41b9170

Please sign in to comment.