Merge lp:~donadigo/switchboard-plug-power/desktop-machines-fixes into lp:~elementary-apps/switchboard-plug-power/trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Cody Garver | ||||
Approved revision: | 313 | ||||
Merged at revision: | 311 | ||||
Proposed branch: | lp:~donadigo/switchboard-plug-power/desktop-machines-fixes | ||||
Merge into: | lp:~elementary-apps/switchboard-plug-power/trunk | ||||
Diff against target: |
395 lines (+89/-86) 5 files modified
src/Battery.vala (+18/-21) src/CliCommunicator.vala (+16/-14) src/Interfaces.vala (+2/-0) src/Plug.vala (+40/-39) src/PowerSupply.vala (+13/-12) |
||||
To merge this branch: | bzr merge lp:~donadigo/switchboard-plug-power/desktop-machines-fixes | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Cody Garver (community) | testing, desktop | Approve | |
Danielle Foré | testing, laptop | Approve | |
Review via email: mp+296501@code.launchpad.net |
Commit message
Fix bug #1556607: "Power plug crashes on ALL desktop machines".
* Rename "return_value" to the actual name of returned variables.
* Code style fixes.
* Remove duplicated variables and replace them with constants.
* Remove unneded variables.
* Grammar fixes.
* Check if DBus interfaces are null to prevent crashes.
Description of the change
Fixes bug #1556607: "Power plug crashes on ALL desktop machines".
This branch makes an overall cleanup of the code, making it more stable and logical including:
* Renaming "return_value" to the actual name of returned variables.
* Code style fixes.
* Removing duplicated variables and replacing them with constants.
* Removing unneded variables.
* Gramatic fixes.
* Checking if DBus interfaces are null to prevent crashes.
I would like to have at least 2 reviews for either battery and desktop devices in order to merge this.
I can confirm that this is working as expected on my notebook. No problems here :)