mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-30 01:08:02 +00:00
Some more ripple animations. Now only anim::value (float64).
Also each FloatAnimation now stops MTP responses. Also slide animations done by FloatAnimation. Closed beta 10019012.
This commit is contained in:
@@ -711,8 +711,6 @@ AppClass::AppClass() : QObject() {
|
||||
|
||||
cChangeTimeFormat(QLocale::system().timeFormat(QLocale::ShortFormat));
|
||||
|
||||
connect(&_mtpUnpauseTimer, SIGNAL(timeout()), this, SLOT(doMtpUnpause()));
|
||||
|
||||
connect(&killDownloadSessionsTimer, SIGNAL(timeout()), this, SLOT(killDownloadSessions()));
|
||||
|
||||
DEBUG_LOG(("Application Info: starting app..."));
|
||||
@@ -832,19 +830,6 @@ void AppClass::cancelPhotoUpdate(const PeerId &peer) {
|
||||
}
|
||||
}
|
||||
|
||||
void AppClass::mtpPause() {
|
||||
MTP::pause();
|
||||
_mtpUnpauseTimer.start(st::slideDuration * 2);
|
||||
}
|
||||
|
||||
void AppClass::mtpUnpause() {
|
||||
_mtpUnpauseTimer.start(1);
|
||||
}
|
||||
|
||||
void AppClass::doMtpUnpause() {
|
||||
MTP::unpause();
|
||||
}
|
||||
|
||||
void AppClass::selfPhotoCleared(const MTPUserProfilePhoto &result) {
|
||||
if (!App::self()) return;
|
||||
App::self()->setPhoto(result);
|
||||
|
||||
Reference in New Issue
Block a user