2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

pausing gifs when mediaview is opened, improved photos handling - download on click if autoload disabled

This commit is contained in:
John Preston
2015-12-25 16:09:14 +03:00
parent edb2a9d5f6
commit a5622cfe3b
20 changed files with 418 additions and 349 deletions

View File

@@ -97,6 +97,11 @@ namespace Ui {
return false;
}
bool isMediaViewShown() {
if (Window *w = App::wnd()) return w->ui_isMediaViewShown();
return false;
}
void clipRedraw(ClipReader *reader) {
const GifItems &items(App::gifItems());
GifItems::const_iterator it = items.constFind(reader);
@@ -143,6 +148,10 @@ namespace Notify {
if (MainWidget *m = App::main()) m->notify_migrateUpdated(peer);
}
void mediaViewHidden() {
if (MainWidget *m = App::main()) m->notify_mediaViewHidden();
}
void clipReinit(ClipReader *reader) {
const GifItems &items(App::gifItems());
GifItems::const_iterator it = items.constFind(reader);