We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 86e72a3 + 90c72cd commit dfa7efcCopy full SHA for dfa7efc
wakelock_plus/lib/src/wakelock_plus_windows_plugin.dart
@@ -20,10 +20,9 @@ class WakelockPlusWindowsPlugin extends WakelockPlusPlatformInterface {
20
Future<void> toggle({required bool enable}) async {
21
final int response;
22
if (enable) {
23
- response = SetThreadExecutionState(
24
- EXECUTION_STATE.ES_CONTINUOUS | EXECUTION_STATE.ES_DISPLAY_REQUIRED);
+ response = SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED);
25
} else {
26
- response = SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS);
+ response = SetThreadExecutionState(ES_CONTINUOUS);
27
}
28
29
// SetThreadExecutionState returns 0 if the operation failed.
0 commit comments