mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Fix crash in float player over Intro.
This commit is contained in:
parent
6068dc418d
commit
3f0078cfbf
1 changed files with 12 additions and 4 deletions
|
@ -227,8 +227,12 @@ void Instance::clearStreamed(not_null<Data*> data, bool savePosition) {
|
|||
data->streamed = nullptr;
|
||||
|
||||
_roundPlaying = false;
|
||||
App::wnd()->sessionController()->disableGifPauseReason(
|
||||
Window::GifPauseReason::RoundPlaying);
|
||||
if (const auto window = App::wnd()) {
|
||||
if (const auto controller = window->sessionController()) {
|
||||
controller->disableGifPauseReason(
|
||||
Window::GifPauseReason::RoundPlaying);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Instance::refreshPlaylist(not_null<Data*> data) {
|
||||
|
@ -745,8 +749,12 @@ void Instance::handleStreamingUpdate(
|
|||
requestRoundVideoRepaint();
|
||||
});
|
||||
_roundPlaying = true;
|
||||
App::wnd()->sessionController()->enableGifPauseReason(
|
||||
Window::GifPauseReason::RoundPlaying);
|
||||
if (const auto window = App::wnd()) {
|
||||
if (const auto controller = window->sessionController()) {
|
||||
controller->enableGifPauseReason(
|
||||
Window::GifPauseReason::RoundPlaying);
|
||||
}
|
||||
}
|
||||
requestRoundVideoResize();
|
||||
}
|
||||
emitUpdate(data->type);
|
||||
|
|
Loading…
Add table
Reference in a new issue