mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:34:03 -04:00
fix: consider manual upload when darkening screen
This commit is contained in:
parent
2237b7a399
commit
deb6d49184
@ -98,7 +98,8 @@ class BackupControllerPage extends HookConsumerWidget {
|
||||
|
||||
useEffect(
|
||||
() {
|
||||
if (backupState.backupProgress == BackUpProgressEnum.inProgress) {
|
||||
if (backupState.backupProgress == BackUpProgressEnum.inProgress ||
|
||||
backupState.backupProgress == BackUpProgressEnum.manualInProgress) {
|
||||
startScreenDarkenTimer();
|
||||
WakelockPlus.enable();
|
||||
} else {
|
||||
@ -302,7 +303,8 @@ class BackupControllerPage extends HookConsumerWidget {
|
||||
if (isScreenDarkened.value) {
|
||||
stopScreenDarkenTimer();
|
||||
}
|
||||
if (backupState.backupProgress == BackUpProgressEnum.inProgress) {
|
||||
if (backupState.backupProgress == BackUpProgressEnum.inProgress ||
|
||||
backupState.backupProgress == BackUpProgressEnum.manualInProgress) {
|
||||
startScreenDarkenTimer();
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user