Merge lp:~seb128/ubuntu-system-settings/battery-focus-refresh into lp:ubuntu-system-settings

Proposed by Sebastien Bacher
Status: Merged
Approved by: Ken VanDine
Approved revision: 1358
Merged at revision: 1383
Proposed branch: lp:~seb128/ubuntu-system-settings/battery-focus-refresh
Merge into: lp:ubuntu-system-settings
Diff against target: 19 lines (+9/-0)
1 file modified
plugins/battery/PageComponent.qml (+9/-0)
To merge this branch: bzr merge lp:~seb128/ubuntu-system-settings/battery-focus-refresh
Reviewer Review Type Date Requested Status
Ken VanDine Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+253854@code.launchpad.net

Commit message

[battery] refresh the canvas when getting focus to avoid outdated info

Description of the change

[battery] refresh the canvas when getting focus to avoid outdated info

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Looks good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/battery/PageComponent.qml'
--- plugins/battery/PageComponent.qml 2015-01-30 18:09:06 +0000
+++ plugins/battery/PageComponent.qml 2015-03-23 16:57:03 +0000
@@ -83,6 +83,15 @@
83 onTriggered: canvas.requestPaint()83 onTriggered: canvas.requestPaint()
84 }84 }
8585
86 Connections {
87 target: Qt.application
88 onActiveChanged: {
89 if (Qt.application.state === Qt.ApplicationActive) {
90 canvas.requestPaint()
91 }
92 }
93 }
94
86 Flickable {95 Flickable {
87 id: scrollWidget96 id: scrollWidget
88 anchors.fill: parent97 anchors.fill: parent

Subscribers

People subscribed via source and target branches