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

Use base::call_delayed.

This commit is contained in:
John Preston
2019-09-26 13:55:35 +03:00
parent 09a7daf164
commit 30a1bd7ba2
29 changed files with 68 additions and 83 deletions

View File

@@ -27,6 +27,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "apiwrap.h"
#include "window/window_session_controller.h"
#include "core/file_utilities.h"
#include "base/call_delayed.h"
#include "facades.h"
#include "app.h"
#include "styles/style_settings.h"
@@ -176,7 +177,7 @@ void SetupInterfaceScale(
App::restart();
});
const auto cancelled = crl::guard(button, [=] {
App::CallDelayed(
base::call_delayed(
st::defaultSettingsSlider.duration,
button,
[=] { (*setScale)(cConfigScale()); });