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

Add simple switch emoji set box.

This commit is contained in:
John Preston
2018-12-26 18:00:08 +04:00
parent 79fea49272
commit de00e0e15c
8 changed files with 400 additions and 4 deletions

View File

@@ -29,6 +29,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "storage/localstorage.h"
#include "core/file_utilities.h"
#include "data/data_session.h"
#include "chat_helpers/emoji_sets_manager.h"
#include "support/support_common.h"
#include "support/support_templates.h"
#include "auth_session.h"
@@ -485,6 +486,16 @@ void SetupStickersEmoji(not_null<Ui::VerticalLayout*> container) {
Ui::show(Box<StickersBox>(StickersBox::Section::Installed));
});
AddButton(
container,
lng_emoji_manage_sets,
st::settingsChatButton,
&st::settingsIconStickers,
st::settingsChatIconLeft
)->addClickHandler([] {
Ui::show(Box<Ui::Emoji::ManageSetsBox>());
});
AddSkip(container, st::settingsCheckboxesSkip);
}