await on toggle operation
This commit is contained in:
parent
57c838dbf6
commit
49b04f6a97
|
@ -505,7 +505,7 @@ class Configuration {
|
|||
|
||||
Future<void> setShouldKeepDeviceAwake(bool value) async {
|
||||
await _preferences.setBool(keyShouldKeepDeviceAwake, value);
|
||||
Wakelock.toggle(enable: value);
|
||||
await Wakelock.toggle(enable: value);
|
||||
}
|
||||
|
||||
Future<void> setShouldBackupVideos(bool value) async {
|
||||
|
|
Loading…
Reference in a new issue