Implemented repeated low-battery notifications on session unlock.Added a new slot onScreenLockerActiveChanged() and connected it toPolicyAgent::screenLockerActiveChanged. When the screen is unlocked(active == false), PowerDevil checks the current battery level again.If the percentage is below batteryLowLevel or batteryCriticalLevel,the corresponding notification is displayed.This makes low-battery warnings appear not only at daemon startup butalso after session unlock, such as returning from sleep or unlockingthe screen.
↧