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:
@@ -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()); });
|
||||
|
Reference in New Issue
Block a user