Commit 5271d6e5 authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

clickgame, fixed the audio that was never stopped

It was not stopped after we go back to the menu
parent 6dcdf2c4
......@@ -33,11 +33,6 @@ ActivityBase {
onStart: {}
onStop: {}
Timer {
interval: 5000; running: true; repeat: true
onTriggered: activity.audioEffects.play("qrc:/gcompris/src/activities/clickgame/resource/bubble.wav")
}
pageComponent: Image {
id: background
signal start
......@@ -52,7 +47,16 @@ ActivityBase {
activity.stop.connect(stop)
}
onStart: { Activity.start(activity, background, bar, bonus) }
onStop: { Activity.stop() }
onStop: {
Activity.stop()
timer.stop()
}
Timer {
id: timer
interval: 5000; running: true; repeat: true
onTriggered: activity.audioEffects.play("qrc:/gcompris/src/activities/clickgame/resource/bubble.wav")
}
DialogHelp {
id: dialogHelpLeftRight
......
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