2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add autoupdating for templates (support).

This commit is contained in:
John Preston
2018-10-05 11:14:00 +03:00
parent ccaec28d0b
commit 1411dfb711
8 changed files with 425 additions and 70 deletions

View File

@@ -27,6 +27,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "core/file_utilities.h"
#include "data/data_session.h"
#include "support/support_common.h"
#include "support/support_templates.h"
#include "auth_session.h"
#include "mainwidget.h"
#include "styles/style_settings.h"
@@ -960,8 +961,16 @@ void SetupSupport(not_null<Ui::VerticalLayout*> container) {
Local::writeUserSettings();
}, inner->lifetime());
AddSkip(inner, st::settingsCheckboxesSkip);
AddButton(
inner,
rpl::single(qsl("Reload templates")),
st::settingsButton
)->addClickHandler([=] {
Auth().supportTemplates()->reload();
});
AddSkip(inner);
}
Chat::Chat(QWidget *parent, not_null<UserData*> self)