2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Finish animations disabling.

Replace some infinite animations with static layouts.
This commit is contained in:
John Preston
2018-09-20 19:39:59 +03:00
parent f68466b072
commit 1ffbec0215
29 changed files with 410 additions and 155 deletions

View File

@@ -203,11 +203,11 @@ TimeMs BackgroundRow::radialTimeShift() const {
}
void BackgroundRow::step_radial(TimeMs ms, bool timer) {
_radial.update(
const auto updated = _radial.update(
radialProgress(),
!radialLoading(),
ms + radialTimeShift());
if (timer && _radial.animating()) {
if (timer && _radial.animating() && (!anim::Disabled() || updated)) {
rtlupdate(radialRect());
}
}