on xenial help sign in
Reload infographic notification data when the device is unlocked
3749080Tomás Tormo
qml/Greeter/Infographics.qml+14−6
@@ -26,6 +26,8 @@ Item {
26
26
27 property int animDuration: 10
27 property int animDuration: 10
28
28
29+ property int currentDay: -1 // Boot time value
30+
29 QtObject {
31 QtObject {
30 id: d
32 id: d
31 objectName: "infographicPrivate"
33 objectName: "infographicPrivate"
@@ -50,14 +52,20 @@ Item {
50 onDataDisappeared: startShowAnimation() // show "no data" label
52 onDataDisappeared: startShowAnimation() // show "no data" label
51 }
53 }
52
54
53− function startShowAnimation() {
54− dotHideAnimTimer.stop()
55− notification.hideAnim.stop()
56
55
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+
57− if (d.useDotAnimation) {
64+ if (d.useDotAnimation) {
58− dotShowAnimTimer.startFromBeginning()
65+ dotShowAnimTimer.startFromBeginning()
66+ }
67+ notification.showAnim.start()
59 }
68 }
60− notification.showAnim.start()
61 }
69 }
62
70
63 function startHideAnimation() {
71 function startHideAnimation() {