mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
@@ -59,7 +59,7 @@ void StickerSetBox::prepare() {
|
||||
_inner->setInstalled()
|
||||
| rpl::start([this](auto &&setId) {
|
||||
Auth().api().stickerSetInstalled(setId);
|
||||
closeBox();
|
||||
this->closeBox();
|
||||
}, lifetime());
|
||||
}
|
||||
|
||||
|
@@ -64,7 +64,7 @@ TabbedPanel::TabbedPanel(
|
||||
});
|
||||
_selector->showRequests()
|
||||
| rpl::start([this](auto&&) {
|
||||
showFromSelector();
|
||||
this->showFromSelector();
|
||||
}, lifetime());
|
||||
|
||||
resize(QRect(0, 0, st::emojiPanWidth, st::emojiPanMaxHeight).marginsAdded(innerPadding()).size());
|
||||
|
@@ -88,7 +88,7 @@ object_ptr<TopBar> NarrowWrap::createTopBar() {
|
||||
result->enableBackButton(true);
|
||||
result->backRequest()
|
||||
| rpl::start([this](auto&&) {
|
||||
controller()->showBackFromStack();
|
||||
this->controller()->showBackFromStack();
|
||||
}, result->lifetime());
|
||||
result->setTitle(TitleValue(
|
||||
_content->section(),
|
||||
|
@@ -323,16 +323,16 @@ void CoverLine::initViewers() {
|
||||
using Flag = Notify::PeerUpdate::Flag;
|
||||
PeerUpdateViewer(_peer, Flag::PhotoChanged)
|
||||
| rpl::start(
|
||||
[this](auto&&) { refreshUserpicLink(); },
|
||||
[this](auto&&) { this->refreshUserpicLink(); },
|
||||
_lifetime);
|
||||
PeerUpdateViewer(_peer, Flag::NameChanged)
|
||||
| rpl::start(
|
||||
[this](auto&&) { refreshNameText(); },
|
||||
[this](auto&&) { this->refreshNameText(); },
|
||||
_lifetime);
|
||||
PeerUpdateViewer(_peer,
|
||||
Flag::UserOnlineChanged | Flag::MembersChanged)
|
||||
| rpl::start(
|
||||
[this](auto&&) { refreshStatusText(); },
|
||||
[this](auto&&) { this->refreshStatusText(); },
|
||||
_lifetime);
|
||||
}
|
||||
|
||||
|
@@ -59,8 +59,8 @@ void TopBar::pushButton(object_ptr<Ui::RpWidget> button) {
|
||||
auto weak = Ui::AttachParentChild(this, button);
|
||||
_buttons.push_back(std::move(button));
|
||||
weak->widthValue()
|
||||
| rpl::start([this](auto) {
|
||||
updateControlsGeometry(width());
|
||||
| rpl::start([this](auto&&) {
|
||||
this->updateControlsGeometry(this->width());
|
||||
}, _lifetime);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user