mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash and glitch in video-in-PiP preserve.
This commit is contained in:
parent
5bb73d8d3d
commit
06292e7442
1 changed files with 8 additions and 5 deletions
|
@ -2211,10 +2211,9 @@ void OverlayWidget::showDocument(
|
||||||
|
|
||||||
_streamingStartPaused = false;
|
_streamingStartPaused = false;
|
||||||
displayDocument(document, context, cloud, continueStreaming);
|
displayDocument(document, context, cloud, continueStreaming);
|
||||||
preloadData(0);
|
if (!isHidden()) {
|
||||||
activateControls();
|
preloadData(0);
|
||||||
if (_showAsPip && !videoIsGifOrUserpic()) {
|
activateControls();
|
||||||
switchToPip();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2412,7 +2411,11 @@ void OverlayWidget::displayDocument(
|
||||||
contentSizeChanged();
|
contentSizeChanged();
|
||||||
refreshFromLabel(item);
|
refreshFromLabel(item);
|
||||||
_blurred = false;
|
_blurred = false;
|
||||||
displayFinished();
|
if (_showAsPip && _streamed && !videoIsGifOrUserpic()) {
|
||||||
|
switchToPip();
|
||||||
|
} else {
|
||||||
|
displayFinished();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OverlayWidget::updateThemePreviewGeometry() {
|
void OverlayWidget::updateThemePreviewGeometry() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue