2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 07:56:03 +00:00

pausing of mtp while animating, fixed message field while animating

This commit is contained in:
John Preston
2015-10-15 12:18:24 +02:00
parent 1c28d59ed2
commit f12f21b16b
15 changed files with 99 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org
#include "style.h"
#include "lang.h"
#include "application.h"
#include "window.h"
#include "dialogswidget.h"
#include "mainwidget.h"
@@ -1572,6 +1573,8 @@ void DialogsWidget::dialogsToUp() {
}
void DialogsWidget::animShow(const QPixmap &bgAnimCache) {
MTP::pause();
_bgAnimCache = bgAnimCache;
_animCache = myGrab(this, rect());
_scroll.hide();
@@ -1600,6 +1603,8 @@ bool DialogsWidget::animStep(float64 ms) {
_filter.show();
onFilterUpdate(true);
activate();
if (App::app()) App::app()->mtpUnpause();
} else {
a_bgCoord.update(dt1, st::introHideFunc);
a_bgAlpha.update(dt1, st::introAlphaHideFunc);