diff --git a/src/activities/explore_farm_animals/AnimalLevels.qml b/src/activities/explore_farm_animals/AnimalLevels.qml --- a/src/activities/explore_farm_animals/AnimalLevels.qml +++ b/src/activities/explore_farm_animals/AnimalLevels.qml @@ -37,6 +37,7 @@ property string name: name property alias starVisible: star.visible + property alias touchArea: touchArea property int questionId property string title property string description diff --git a/src/activities/explore_farm_animals/ExploreLevels.qml b/src/activities/explore_farm_animals/ExploreLevels.qml --- a/src/activities/explore_farm_animals/ExploreLevels.qml +++ b/src/activities/explore_farm_animals/ExploreLevels.qml @@ -90,6 +90,7 @@ property alias instruction: instruction property alias instructionText: instructionText property alias descriptionPanel: descriptionPanel + property bool levelComplete: false property bool hasAudioQuestions: activity.hasAudioQuestions property string currentAudio property var questionOrder @@ -132,6 +133,7 @@ Component.onCompleted: { displayDescription.connect(displayDescriptionItem) } + touchArea.mouseEnabled: !items.levelComplete } } @@ -186,7 +188,10 @@ anchors.margins: 10 * ApplicationInfo.ratio MouseArea { anchors.fill: parent - onClicked: Activity.nextLevel() + onClicked: { + items.levelComplete = false + Activity.nextLevel() + } } } diff --git a/src/activities/explore_farm_animals/explore-level.js b/src/activities/explore_farm_animals/explore-level.js --- a/src/activities/explore_farm_animals/explore-level.js +++ b/src/activities/explore_farm_animals/explore-level.js @@ -111,6 +111,7 @@ function initSubSubLevel() { if(items.progressbar.value == items.dataModel.count) { items.bonus.good("smiley"); + items.levelComplete = true } if(items.score.currentSubLevel == 2 && items.hasAudioQuestions) { items.audioVoices.play(getCurrentQuestion().audio);