Bug 313034

Summary: Don't show unsupported Sleep states
Product: [Plasma] homerun Reporter: Philip Muškovac <yofel>
Component: generalAssignee: Homerun bugs. <homerun-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.1.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 0.1.2

Description Philip Muškovac 2013-01-10 19:07:17 UTC
Opening the power tab in homerun shows "Hibernate" in the list of Power states on my system even though hibernate is not supported on my system. Please check if the sleep state is supported before adding the button for it in the UI.

See kde-workspace/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.cpp line 750ff for kickoffs implementation.

Reproducible: Always
Comment 1 Aurelien Gateau 2013-01-24 15:52:08 UTC
Git commit 44fd6776691df2fe744ec988326aad9d251cc93b by Aurélien Gâteau.
Committed on 24/01/2013 at 16:50.
Pushed by gateau into branch 'homerun/0.1'.

power: hide unavailable sleep modes

Many thanks to Philip for pointing me to the code to copy from!
FIXED-IN: 0.1.2

M  +1    -0    components/CMakeLists.txt
M  +18   -11   components/powermodel.cpp

http://commits.kde.org/homerun/44fd6776691df2fe744ec988326aad9d251cc93b