Commit Graph
4 Commits
Author SHA1 Message Date
Kenneth Skovhede 8534c56581 Cleaned up comments 2025-10-18 14:04:35 +02:00
Kenneth Skovhede 379f05a568 New attempt, using powerprof callbacks 2025-10-18 13:51:16 +02:00
Kenneth Skovhede 3f4eb39a1c Re-implemented the powermode detection 2025-10-18 12:36:08 +02:00
Kenneth Skovhede 3269c87329 Add PowerMode provider selection
This PR adds settings to choose a Power Mode provider, which will detect if the system is in a paused/suspended state and avoid starting tasks while being suspended.

This currently only works for Windows, where the previous inplementation is named `NET` (for .NET) and the new mode is named `Native` and using the Windows documented approach with a hidden window that listens for `WM_POWERBROADCAST` messages.

The default is `Native` but can now also be disabled by choosing the `None` provider.
2025-10-15 17:58:24 +02:00