Skip to content

power: Clear sleep warning notification

The sleep warning notification was never dismissed, even when the user became active.

A callback to clear the notification was being installed only when transitioning away from "normal" (for example, just before going to sleep).

This commit also installs said callback right after showing the sleep warning notification. Now, if the user becomes active before sleep takes effect, the notification will be dismissed automatically.

Merge request reports