mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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;
|
data->streamed = nullptr;
|
||||||
|
|
||||||
_roundPlaying = false;
|
_roundPlaying = false;
|
||||||
App::wnd()->sessionController()->disableGifPauseReason(
|
if (const auto window = App::wnd()) {
|
||||||
Window::GifPauseReason::RoundPlaying);
|
if (const auto controller = window->sessionController()) {
|
||||||
|
controller->disableGifPauseReason(
|
||||||
|
Window::GifPauseReason::RoundPlaying);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Instance::refreshPlaylist(not_null<Data*> data) {
|
void Instance::refreshPlaylist(not_null<Data*> data) {
|
||||||
|
@ -745,8 +749,12 @@ void Instance::handleStreamingUpdate(
|
||||||
requestRoundVideoRepaint();
|
requestRoundVideoRepaint();
|
||||||
});
|
});
|
||||||
_roundPlaying = true;
|
_roundPlaying = true;
|
||||||
App::wnd()->sessionController()->enableGifPauseReason(
|
if (const auto window = App::wnd()) {
|
||||||
Window::GifPauseReason::RoundPlaying);
|
if (const auto controller = window->sessionController()) {
|
||||||
|
controller->enableGifPauseReason(
|
||||||
|
Window::GifPauseReason::RoundPlaying);
|
||||||
|
}
|
||||||
|
}
|
||||||
requestRoundVideoResize();
|
requestRoundVideoResize();
|
||||||
}
|
}
|
||||||
emitUpdate(data->type);
|
emitUpdate(data->type);
|
||||||
|
|
Loading…
Add table
Reference in a new issue