Commit 187190ef authored by Timothée Giet's avatar Timothée Giet

explore_farm_animals, fix to always enable needed audio

parent 9b581aa6
......@@ -29,5 +29,5 @@ ExploreLevels {
numberOfLevels: 1
url: "qrc:/gcompris/src/activities/explore_farm_animals/resource/"
hasAudioQuestions: true
isMusicalActivity: true
needsVoices: true
}
......@@ -35,6 +35,7 @@ ActivityBase {
property int numberOfLevels
property string url
property bool hasAudioQuestions
property bool needsVoices: false
onStart: focus = true
onStop: {}
......@@ -128,6 +129,9 @@ ActivityBase {
activity.audioVoices.done.connect(voiceDone)
activity.audioEffects.done.connect(voiceDone)
Activity.start(items, url, numberOfLevels)
if(activity.needsVoices === true) {
activity.isMusicalActivity = true
}
}
onStop: { Activity.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