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

0.10.10: Crashfix: Removed infinite recursion in Ui::FadeAnimation().

This commit is contained in:
John Preston
2016-10-03 13:08:22 +03:00
parent 9d6fb22d11
commit aa17702c01
5 changed files with 14 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
#define BETA_VERSION_MACRO (0ULL)
constexpr int AppVersion = 10009;
constexpr str_const AppVersionStr = "0.10.9";
constexpr int AppVersion = 10010;
constexpr str_const AppVersionStr = "0.10.10";
constexpr bool AppAlphaVersion = false;
constexpr uint64 AppBetaVersion = BETA_VERSION_MACRO;

View File

@@ -103,7 +103,7 @@ void FadeAnimation::startAnimation(int duration) {
}
void FadeAnimation::updateCallback() {
if (_animation.animating(getms())) {
if (_animation.animating()) {
_widget->update();
if (_updatedCallback) {
_updatedCallback(_animation.current(_visible ? 1. : 0.));