mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
pausing of mtp while animating, fixed message field while animating
This commit is contained in:
@@ -2705,6 +2705,8 @@ void MainWidget::historyCleared(History *hist) {
|
||||
}
|
||||
|
||||
void MainWidget::animShow(const QPixmap &bgAnimCache, bool back) {
|
||||
MTP::pause();
|
||||
|
||||
_bgAnimCache = bgAnimCache;
|
||||
|
||||
anim::stop(this);
|
||||
@@ -2737,6 +2739,8 @@ bool MainWidget::animStep(float64 ms) {
|
||||
anim::stop(this);
|
||||
showAll();
|
||||
activate();
|
||||
|
||||
if (App::app()) App::app()->mtpUnpause();
|
||||
} else {
|
||||
a_bgCoord.update(dt1, st::introHideFunc);
|
||||
a_bgAlpha.update(dt1, st::introAlphaHideFunc);
|
||||
|
Reference in New Issue
Block a user