mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-22 09:07:05 +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;
|
||||
displayDocument(document, context, cloud, continueStreaming);
|
||||
preloadData(0);
|
||||
activateControls();
|
||||
if (_showAsPip && !videoIsGifOrUserpic()) {
|
||||
switchToPip();
|
||||
if (!isHidden()) {
|
||||
preloadData(0);
|
||||
activateControls();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2412,7 +2411,11 @@ void OverlayWidget::displayDocument(
|
|||
contentSizeChanged();
|
||||
refreshFromLabel(item);
|
||||
_blurred = false;
|
||||
displayFinished();
|
||||
if (_showAsPip && _streamed && !videoIsGifOrUserpic()) {
|
||||
switchToPip();
|
||||
} else {
|
||||
displayFinished();
|
||||
}
|
||||
}
|
||||
|
||||
void OverlayWidget::updateThemePreviewGeometry() {
|
||||
|
|
Loading…
Add table
Reference in a new issue