mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
Fixes playing video on change
This commit is contained in:
parent
f43ef096b3
commit
67df5e02a7
1 changed files with 2 additions and 1 deletions
|
|
@ -116,7 +116,6 @@ class GalleryViewerPage extends HookConsumerWidget {
|
|||
settings.getSetting<bool>(AppSettingsEnum.loadPreview);
|
||||
isLoadOriginal.value =
|
||||
settings.getSetting<bool>(AppSettingsEnum.loadOriginal);
|
||||
isPlayingVideo.value = false;
|
||||
return null;
|
||||
},
|
||||
[],
|
||||
|
|
@ -273,6 +272,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
|||
} else {
|
||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
|
||||
}
|
||||
isPlayingVideo.value = false;
|
||||
return null;
|
||||
},
|
||||
[],
|
||||
|
|
@ -391,6 +391,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
|||
HapticFeedback.selectionClick();
|
||||
currentIndex.value = value;
|
||||
stackIndex.value = -1;
|
||||
isPlayingVideo.value = false;
|
||||
|
||||
// Wait for page change animation to finish
|
||||
await Future.delayed(const Duration(milliseconds: 400));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue