@@ -14,6 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17import QtQuick 2.0
18import QtQuick 2.0
18import QtGraphicalEffects 1.0
19import QtGraphicalEffects 1.0
19import Ubuntu.Application 0.1
20import Ubuntu.Application 0.1
@@ -243,4 +244,21 @@ Showable {
248+ // Watch display, so we can turn off animation if it does. No reason to
249+ // chew CPU when user isn't watching.
254+ onDisplayPowerStateChange: {
255+ if (status == Powerd.Off && wholeAnimation.running) {
256+ wholeAnimation.paused = true;
257+ //hintAnimation.paused = true;
258+ } else if (status == Powerd.On) {
259+ wholeAnimation.paused = false;
260+ //hintAnimation.paused = false;