Quantcast
Channel: PowerDevil activity
Viewing all articles
Browse latest Browse all 1699

Jakob Petsovits opened merge request !362: kcmodule: Hide profile load/unload fields if battery profiles are absent at Plasma / PowerDevil

$
0
0

Profile load/unload events only make sense in the context ofswitching between power state profiles, which can't happen unlessbattery profiles are supported on the given system.

For a system with only "AC Power", let's not show the correspondingprofile load/unload custom script fields in the KCM. This only leavesthe idle timeout custom script, which in this case we may as wellshow unconditionally and take out the "Choose run conditions" button.

In the C++ backend, the code for querying Solid for batteries getsmoved to the KCM constructor so that kcm.supportsBatteryProfilesis correct at QML component construction time already.

(cherry picked from commit fb57e7e7 / MR !357)


Viewing all articles
Browse latest Browse all 1699

Trending Articles