2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Use layers and boxes from lib_ui.

This commit is contained in:
John Preston
2019-09-18 14:19:05 +03:00
parent 860353824b
commit a6c84c36c0
209 changed files with 586 additions and 3349 deletions

View File

@@ -2775,7 +2775,7 @@ void StickersListWidget::displaySet(uint64 setId) {
_displayingSet = true;
checkHideWithBox(Ui::show(
Box<StickersBox>(_megagroupSet),
LayerOption::KeepOther).data());
Ui::LayerOption::KeepOther).data());
return;
} else if (_megagroupSet->mgInfo->stickerSet.type() == mtpc_inputStickerSetID) {
setId = _megagroupSet->mgInfo->stickerSet.c_inputStickerSetID().vid().v;
@@ -2789,11 +2789,11 @@ void StickersListWidget::displaySet(uint64 setId) {
_displayingSet = true;
checkHideWithBox(Ui::show(
Box<StickerSetBox>(controller(), Stickers::inputSetId(*it)),
LayerOption::KeepOther).data());
Ui::LayerOption::KeepOther).data());
}
}
void StickersListWidget::checkHideWithBox(QPointer<BoxContent> box) {
void StickersListWidget::checkHideWithBox(QPointer<Ui::BoxContent> box) {
if (!box) {
return;
}