don't take thumbnails when in fullscreen mode
This commit is contained in:
+10
-4
@@ -309,17 +309,23 @@ class _BrowserViewState extends ConsumerState<BrowserView>
|
|||||||
|
|
||||||
ref.listenManual(
|
ref.listenManual(
|
||||||
selectedTabStateProvider.select(
|
selectedTabStateProvider.select(
|
||||||
(state) => (tabId: state?.id, isLoading: state?.isLoading),
|
(state) => (
|
||||||
|
tabId: state?.id,
|
||||||
|
isLoading: state?.isLoading,
|
||||||
|
isFullScreen: state?.isFullScreen,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
(previous, next) {
|
(previous, next) {
|
||||||
if (previous?.tabId != next.tabId || next.isLoading == true) {
|
if (previous?.tabId != next.tabId ||
|
||||||
|
next.isLoading == true ||
|
||||||
|
next.isFullScreen == true) {
|
||||||
_periodicScreenshotUpdate?.cancel();
|
_periodicScreenshotUpdate?.cancel();
|
||||||
_periodicScreenshotUpdate = null;
|
_periodicScreenshotUpdate = null;
|
||||||
_timerPaused = false;
|
_timerPaused = false;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (next.isLoading == false &&
|
if ((_periodicScreenshotUpdate?.isActive ?? false) == false) {
|
||||||
(_periodicScreenshotUpdate?.isActive ?? false) == false) {
|
|
||||||
_timerPaused = false;
|
_timerPaused = false;
|
||||||
_periodicScreenshotUpdate?.cancel();
|
_periodicScreenshotUpdate?.cancel();
|
||||||
_periodicScreenshotUpdate = Timer.periodic(
|
_periodicScreenshotUpdate = Timer.periodic(
|
||||||
|
|||||||
Reference in New Issue
Block a user