Commit 172e2f3a authored by kempe's avatar kempe
Browse files

Fixed sleep timer

parent 3ab9d7fa
......@@ -65,8 +65,8 @@ DockedPanel {
sleepTimerLabel.text = Utils.secToTimeString(sleepSec - count);
}
onSleepTriggered: {
if(isPlaying()) {
stop();
if(player.isPlaying()) {
player.stop();
}
}
}
......
......@@ -12,6 +12,7 @@ Timer {
count++;
if(count >= sleepSec) {
sleepTriggered()
stop()
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment