mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Add hierarchy of GIF pausing inside a window.
GIFs get paused if some other layer is displayed above. Media preview > Box or layer > Saved GIFs panel > Inline bot results. If any of those is displayed, GIFs inside message history pause too.
This commit is contained in:
@@ -251,13 +251,6 @@ bool isMediaViewShown() {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool isInlineItemBeingChosen() {
|
||||
if (auto main = App::main()) {
|
||||
return main->ui_isInlineItemBeingChosen();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void repaintHistoryItem(const HistoryItem *item) {
|
||||
if (auto main = App::main()) {
|
||||
main->ui_repaintHistoryItem(item);
|
||||
@@ -364,10 +357,6 @@ void migrateUpdated(PeerData *peer) {
|
||||
if (MainWidget *m = App::main()) m->notify_migrateUpdated(peer);
|
||||
}
|
||||
|
||||
void clipStopperHidden(ClipStopperType type) {
|
||||
if (MainWidget *m = App::main()) m->notify_clipStopperHidden(type);
|
||||
}
|
||||
|
||||
void historyItemLayoutChanged(const HistoryItem *item) {
|
||||
if (MainWidget *m = App::main()) m->notify_historyItemLayoutChanged(item);
|
||||
}
|
||||
|
Reference in New Issue
Block a user