2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +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

@@ -42,6 +42,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_cloud_themes.h"
#include "chat_helpers/emoji_sets_manager.h"
#include "base/platform/base_platform_info.h"
#include "base/call_delayed.h"
#include "support/support_common.h"
#include "support/support_templates.h"
#include "main/main_session.h"
@@ -809,7 +810,7 @@ void SetupExport(
)->addClickHandler([=] {
const auto session = &controller->session();
Ui::hideSettingsAndLayer();
App::CallDelayed(
base::call_delayed(
st::boxDuration,
session,
[=] { session->data().startExport(); });