mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Version 5.10: Fix build with GCC.
This commit is contained in:
parent
c34289036f
commit
603aa5db5f
3 changed files with 15 additions and 15 deletions
|
@ -1936,19 +1936,23 @@ void Controller::rowClicked(not_null<PeerListRow*> row) {
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
void ChooseStarGiftRecipient(
|
void ChooseStarGiftRecipient(
|
||||||
not_null<Window::SessionController*> controller) {
|
not_null<Window::SessionController*> window) {
|
||||||
auto initBox = [=](not_null<PeerListBox*> peersBox) {
|
auto controller = std::make_unique<Controller>(
|
||||||
peersBox->setTitle(tr::lng_gift_premium_or_stars());
|
&window->session(),
|
||||||
peersBox->addButton(tr::lng_cancel(), [=] { peersBox->closeBox(); });
|
|
||||||
};
|
|
||||||
|
|
||||||
auto listController = std::make_unique<Controller>(
|
|
||||||
&controller->session(),
|
|
||||||
[=](not_null<PeerData*> peer) {
|
[=](not_null<PeerData*> peer) {
|
||||||
ShowStarGiftBox(controller, peer);
|
ShowStarGiftBox(window, peer);
|
||||||
});
|
});
|
||||||
controller->show(
|
const auto controllerRaw = controller.get();
|
||||||
Box<PeerListBox>(std::move(listController), std::move(initBox)),
|
auto initBox = [=](not_null<PeerListBox*> box) {
|
||||||
|
box->setTitle(tr::lng_gift_premium_or_stars());
|
||||||
|
box->addButton(tr::lng_cancel(), [=] { box->closeBox(); });
|
||||||
|
|
||||||
|
box->noSearchSubmits() | rpl::start_with_next([=] {
|
||||||
|
controllerRaw->noSearchSubmit();
|
||||||
|
}, box->lifetime());
|
||||||
|
};
|
||||||
|
window->show(
|
||||||
|
Box<PeerListBox>(std::move(controller), std::move(initBox)),
|
||||||
LayerOption::KeepOther);
|
LayerOption::KeepOther);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -406,7 +406,6 @@ void ShowTransferGiftBox(
|
||||||
auto initBox = [=](not_null<PeerListBox*> box) {
|
auto initBox = [=](not_null<PeerListBox*> box) {
|
||||||
box->addButton(tr::lng_cancel(), [=] { box->closeBox(); });
|
box->addButton(tr::lng_cancel(), [=] { box->closeBox(); });
|
||||||
|
|
||||||
|
|
||||||
box->noSearchSubmits() | rpl::start_with_next([=] {
|
box->noSearchSubmits() | rpl::start_with_next([=] {
|
||||||
controllerRaw->noSearchSubmit();
|
controllerRaw->noSearchSubmit();
|
||||||
}, box->lifetime());
|
}, box->lifetime());
|
||||||
|
|
|
@ -432,8 +432,6 @@ QRect Service::countGeometry() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Service::animateReaction(Ui::ReactionFlyAnimationArgs &&args) {
|
void Service::animateReaction(Ui::ReactionFlyAnimationArgs &&args) {
|
||||||
const auto item = data();
|
|
||||||
|
|
||||||
auto g = countGeometry();
|
auto g = countGeometry();
|
||||||
if (g.width() < 1 || isHidden()) {
|
if (g.width() < 1 || isHidden()) {
|
||||||
return;
|
return;
|
||||||
|
@ -541,7 +539,6 @@ void Service::draw(Painter &p, const PaintContext &context) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto st = context.st;
|
const auto st = context.st;
|
||||||
auto clip = context.clip;
|
|
||||||
if (const auto bar = Get<UnreadBar>()) {
|
if (const auto bar = Get<UnreadBar>()) {
|
||||||
auto unreadbarh = bar->height();
|
auto unreadbarh = bar->height();
|
||||||
auto dateh = 0;
|
auto dateh = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue