on xenial help sign in
Reload infographic notification data when the device is unlocked
commit3749080639df7260245c0f8b2747bc477df315bd authorTomás Tormo <tomas.tormo@gmail.com> dateThu 25 Aug 2016, 00:23 (10 years ago) parent9ffec52
1 file changed+14−6
qml/Greeter/Infographics.qml+14−6
qml/Greeter/Infographics.qml+14−6
@@ -26,6 +26,8 @@ Item {
2626
2727 property int animDuration: 10
2828
29+ property int currentDay: -1 // Boot time value
30+
2931 QtObject {
3032 id: d
3133 objectName: "infographicPrivate"
@@ -50,14 +52,20 @@ Item {
5052 onDataDisappeared: startShowAnimation() // show "no data" label
5153 }
5254
53− function startShowAnimation() {
54− dotHideAnimTimer.stop()
55− notification.hideAnim.stop()
5655
57− if (d.useDotAnimation) {
58− dotShowAnimTimer.startFromBeginning()
56+ function startShowAnimation() {
57+ if(currentDay !== model.currentDay){
58+ currentDay = model.currentDay
59+ model.nextDataSource();
60+ }else{
61+ dotHideAnimTimer.stop()
62+ notification.hideAnim.stop()
63+
64+ if (d.useDotAnimation) {
65+ dotShowAnimTimer.startFromBeginning()
66+ }
67+ notification.showAnim.start()
5968 }
60− notification.showAnim.start()
6169 }
6270
6371 function startHideAnimation() {