Beta version 3.1.5: Fix build on Linux.

This commit is contained in:
John Preston 2021-09-28 23:48:37 +04:00
parent fd4a543bab
commit 315549b5f8
1 changed files with 0 additions and 15 deletions

View File

@ -259,21 +259,6 @@ void ChooseThemeController::initButtons() {
apply->moveToRight(left, 0);
}, controls->lifetime());
const auto changed = [=] {
if (_chosen.isEmpty()) {
return false;
}
const auto now = Ui::Emoji::Find(_peer->themeEmoji());
if (_chosen == kDisableElement.utf16()) {
return !now;
}
for (const auto &entry : _entries) {
if (entry.id && entry.emoji->text() == _chosen) {
return (now != entry.emoji);
}
}
return false;
};
cancel->setClickedCallback([=] { close(); });
apply->setClickedCallback([=] {
if (const auto chosen = findChosen()) {