Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
sailfish-apps
Received
Commits
172e2f3a
Commit
172e2f3a
authored
Jul 05, 2017
by
kempe
Browse files
Fixed sleep timer
parent
3ab9d7fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
qml/components/AudioPlayer.qml
qml/components/AudioPlayer.qml
+2
-2
qml/components/SleepTimer.qml
qml/components/SleepTimer.qml
+1
-0
No files found.
qml/components/AudioPlayer.qml
View file @
172e2f3a
...
...
@@ -65,8 +65,8 @@ DockedPanel {
sleepTimerLabel
.
text
=
Utils
.
secToTimeString
(
sleepSec
-
count
);
}
onSleepTriggered
:
{
if
(
isPlaying
())
{
stop
();
if
(
player
.
isPlaying
())
{
player
.
stop
();
}
}
}
...
...
qml/components/SleepTimer.qml
View file @
172e2f3a
...
...
@@ -12,6 +12,7 @@ Timer {
count
++
;
if
(
count
>=
sleepSec
)
{
sleepTriggered
()
stop
()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment