mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +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