Merge pull request #672 from AdamWill/set-on-battery-before-switch-profile
controller init: set _on_battery before switching profile
This commit is contained in:
commit
c082797fd0
1 changed files with 1 additions and 1 deletions
|
|
@ -138,8 +138,8 @@ class Controller(exports.interfaces.ExportableInterface):
|
|||
self._config = PPDConfig(PPD_CONFIG_FILE)
|
||||
active_profile = self.active_profile()
|
||||
self._base_profile = active_profile if active_profile != UNKNOWN_PROFILE else self._config.default_profile
|
||||
self.switch_profile(self._base_profile)
|
||||
self._on_battery = False
|
||||
self.switch_profile(self._base_profile)
|
||||
if self._config.battery_detection:
|
||||
self.setup_battery_signaling()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue