mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build on Windows.
This commit is contained in:
parent
db80096e6b
commit
813d0501da
2 changed files with 5 additions and 5 deletions
|
@ -1476,7 +1476,7 @@ void StickerSetBox::Inner::fillDeleteStickerBox(
|
||||||
sticker->paintRequest(
|
sticker->paintRequest(
|
||||||
) | rpl::start_with_next([=] {
|
) | rpl::start_with_next([=] {
|
||||||
auto p = Painter(sticker);
|
auto p = Painter(sticker);
|
||||||
if (const auto strong = weak.get()) {
|
if (const auto strong = weak.data()) {
|
||||||
const auto paused = On(PowerSaving::kStickersPanel)
|
const auto paused = On(PowerSaving::kStickersPanel)
|
||||||
|| show->paused(ChatHelpers::PauseReason::Layer);
|
|| show->paused(ChatHelpers::PauseReason::Layer);
|
||||||
paintSticker(p, index, QPoint(), paused, crl::now());
|
paintSticker(p, index, QPoint(), paused, crl::now());
|
||||||
|
@ -1530,14 +1530,14 @@ void StickerSetBox::Inner::fillDeleteStickerBox(
|
||||||
Data::StickersType::Stickers);
|
Data::StickersType::Stickers);
|
||||||
}, [](const auto &) {
|
}, [](const auto &) {
|
||||||
});
|
});
|
||||||
if (const auto strong = weak.get()) {
|
if (const auto strong = weak.data()) {
|
||||||
applySet(result);
|
applySet(result);
|
||||||
}
|
}
|
||||||
if (const auto strongBox = weakBox.get()) {
|
if (const auto strongBox = weakBox.data()) {
|
||||||
strongBox->closeBox();
|
strongBox->closeBox();
|
||||||
}
|
}
|
||||||
}).fail([=](const MTP::Error &error) {
|
}).fail([=](const MTP::Error &error) {
|
||||||
if (const auto strongBox = weakBox.get()) {
|
if (const auto strongBox = weakBox.data()) {
|
||||||
strongBox->uiShow()->showToast(error.type());
|
strongBox->uiShow()->showToast(error.type());
|
||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
|
|
|
@ -1735,7 +1735,7 @@ void StickersListWidget::showStickerSetBox(
|
||||||
document->owner().stickers().updated(
|
document->owner().stickers().updated(
|
||||||
Data::StickersType::Stickers)
|
Data::StickersType::Stickers)
|
||||||
) | rpl::start_with_next([=, weak = Ui::MakeWeak(this)] {
|
) | rpl::start_with_next([=, weak = Ui::MakeWeak(this)] {
|
||||||
if (weak.get()) {
|
if (weak.data()) {
|
||||||
showStickerSetBox(document, setId);
|
showStickerSetBox(document, setId);
|
||||||
}
|
}
|
||||||
lifetime->destroy();
|
lifetime->destroy();
|
||||||
|
|
Loading…
Add table
Reference in a new issue