mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-31 01:25:50 +00:00
pausing gifs that are not currently displayed
This commit is contained in:
@@ -2441,7 +2441,7 @@ namespace App {
|
||||
}
|
||||
|
||||
void stopGifItems() {
|
||||
while (!::gifItems.isEmpty()) {
|
||||
if (!::gifItems.isEmpty()) {
|
||||
if (HistoryItem *playing = ::gifItems.begin().value()) {
|
||||
if (playing->getMedia() && playing->getMedia()->type() == MediaTypeGif) {
|
||||
static_cast<HistoryGif*>(playing->getMedia())->stop(playing);
|
||||
|
||||
Reference in New Issue
Block a user