Commit dfbf3f95 authored by Timothée Giet's avatar Timothée Giet

core, halt bonus when closing an activity

parent 74652126
...@@ -97,7 +97,7 @@ Item { ...@@ -97,7 +97,7 @@ Item {
readonly property int fullButton: 66 readonly property int fullButton: 66
readonly property int halfButton: 30 readonly property int halfButton: 30
readonly property int fullButtonScaled: fullButton * barZoom readonly property int fullButtonScaled: fullButton * barZoom
readonly property int halfButtonScaled: halfButton * barZoom readonly property int halfButtonScaled: halfButton * barZoom
...@@ -505,7 +505,11 @@ Item { ...@@ -505,7 +505,11 @@ Item {
BarButton { BarButton {
source: "qrc:/gcompris/src/core/resource/bar_home.svg"; source: "qrc:/gcompris/src/core/resource/bar_home.svg";
sourceSize.width: fullButtonScaled sourceSize.width: fullButtonScaled
onClicked: bar.homeClicked() onClicked: {
if(bonus)
bonus.haltBonus();
bar.homeClicked();
}
} }
} }
Component { Component {
......
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