2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

Add lambda-based checked timers.

Also ApiWrap is now not a QObject.
This commit is contained in:
John Preston
2017-04-07 15:10:10 +03:00
parent 6b242a982b
commit 34ab04cbe6
8 changed files with 276 additions and 17 deletions

View File

@@ -27,6 +27,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "autoupdater.h"
#include "window/notifications_manager.h"
#include "messenger.h"
#include "base/timer.h"
namespace {
@@ -546,6 +547,7 @@ void adjustSingleTimers() {
if (auto a = application()) {
a->adjustSingleTimers();
}
base::Timer::Adjust();
}
#ifndef TDESKTOP_DISABLE_AUTOUPDATE