don't take thumbnails when in fullscreen mode

This commit is contained in:
Fabian Freund
2026-03-24 16:57:56 +01:00
parent 9844d2435b
commit 84e6bf2b99
@@ -309,17 +309,23 @@ class _BrowserViewState extends ConsumerState<BrowserView>
ref.listenManual(
selectedTabStateProvider.select(
(state) => (tabId: state?.id, isLoading: state?.isLoading),
(state) => (
tabId: state?.id,
isLoading: state?.isLoading,
isFullScreen: state?.isFullScreen,
),
),
(previous, next) {
if (previous?.tabId != next.tabId || next.isLoading == true) {
if (previous?.tabId != next.tabId ||
next.isLoading == true ||
next.isFullScreen == true) {
_periodicScreenshotUpdate?.cancel();
_periodicScreenshotUpdate = null;
_timerPaused = false;
return;
}
if (next.isLoading == false &&
(_periodicScreenshotUpdate?.isActive ?? false) == false) {
if ((_periodicScreenshotUpdate?.isActive ?? false) == false) {
_timerPaused = false;
_periodicScreenshotUpdate?.cancel();
_periodicScreenshotUpdate = Timer.periodic(