mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
boxes animations pause mtp
This commit is contained in:
@@ -190,8 +190,8 @@ Application::Application(int &argc, char **argv) : PsApplication(argc, argv),
|
||||
connect(this, SIGNAL(updateReady()), this, SLOT(onUpdateReady()));
|
||||
#endif
|
||||
connect(this, SIGNAL(applicationStateChanged(Qt::ApplicationState)), this, SLOT(onAppStateChanged(Qt::ApplicationState)));
|
||||
//connect(&writeUserConfigTimer, SIGNAL(timeout()), this, SLOT(onWriteUserConfig()));
|
||||
//writeUserConfigTimer.setSingleShot(true);
|
||||
|
||||
connect(&_mtpUnpauseTimer, SIGNAL(timeout()), this, SLOT(doMtpUnpause()));
|
||||
|
||||
connect(&killDownloadSessionsTimer, SIGNAL(timeout()), this, SLOT(killDownloadSessions()));
|
||||
|
||||
@@ -296,8 +296,13 @@ void Application::cancelPhotoUpdate(const PeerId &peer) {
|
||||
}
|
||||
}
|
||||
|
||||
void Application::mtpPause() {
|
||||
MTP::pause();
|
||||
_mtpUnpauseTimer.start(1000);
|
||||
}
|
||||
|
||||
void Application::mtpUnpause() {
|
||||
QTimer::singleShot(1, this, SLOT(doMtpUnpause()));
|
||||
_mtpUnpauseTimer.start(1);
|
||||
}
|
||||
|
||||
void Application::doMtpUnpause() {
|
||||
|
Reference in New Issue
Block a user