-
Committer:
Tarmac
-
Author(s):
Lars Uebernickel
-
Date:
2013-10-10 21:44:22 UTC
-
mfrom:
(439.3.2 trunk)
-
Revision ID:
tarmac-20131010214422-sml96a7zw7ogx99c
battery: don't animate switches when opening the page
This happened because the switches' values are not set on initialization, but when the indicator services reports its state a few ms after opening the panel. The switch always animates between its states, with no apparent way to turn it off.
This fix puts the switch controls into a Loader, which loads them as soon as their respective actions are available.
Approved by PS Jenkins bot, Sebastien Bacher.