mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Version 4.11.6: Fix build with GCC.
This commit is contained in:
parent
d6bd88d119
commit
2afc171bec
3 changed files with 2 additions and 9 deletions
|
@ -692,7 +692,7 @@ void GiftCodePendingBox(
|
||||||
|
|
||||||
AddTable(box->verticalLayout(), controller, data, true);
|
AddTable(box->verticalLayout(), controller, data, true);
|
||||||
|
|
||||||
const auto footer = box->addRow(
|
box->addRow(
|
||||||
object_ptr<Ui::FlatLabel>(
|
object_ptr<Ui::FlatLabel>(
|
||||||
box,
|
box,
|
||||||
tr::lng_gift_link_pending_footer(),
|
tr::lng_gift_link_pending_footer(),
|
||||||
|
|
|
@ -184,8 +184,6 @@ void FillShareLink(
|
||||||
|
|
||||||
label->clicks(
|
label->clicks(
|
||||||
) | rpl::start_with_next(copyLink, label->lifetime());
|
) | rpl::start_with_next(copyLink, label->lifetime());
|
||||||
const auto copyShareWrap = content->add(
|
|
||||||
object_ptr<Ui::VerticalLayout>(content));
|
|
||||||
{
|
{
|
||||||
const auto wrap = content->add(
|
const auto wrap = content->add(
|
||||||
object_ptr<Ui::FixedHeightWidget>(
|
object_ptr<Ui::FixedHeightWidget>(
|
||||||
|
|
|
@ -24,7 +24,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
[[nodiscrd]] BoostCounters AdjustByReached(BoostCounters data) {
|
[[nodiscard]] BoostCounters AdjustByReached(BoostCounters data) {
|
||||||
const auto exact = (data.boosts == data.thisLevelBoosts);
|
const auto exact = (data.boosts == data.thisLevelBoosts);
|
||||||
const auto reached = !data.nextLevelBoosts || (exact && data.mine > 0);
|
const auto reached = !data.nextLevelBoosts || (exact && data.mine > 0);
|
||||||
if (reached) {
|
if (reached) {
|
||||||
|
@ -465,11 +465,6 @@ void AskBoostBox(
|
||||||
box->setWidth(st::boxWideWidth);
|
box->setWidth(st::boxWideWidth);
|
||||||
box->setStyle(st::boostBox);
|
box->setStyle(st::boostBox);
|
||||||
|
|
||||||
struct State {
|
|
||||||
bool submitted = false;
|
|
||||||
};
|
|
||||||
const auto state = box->lifetime().make_state<State>();
|
|
||||||
|
|
||||||
FillBoostLimit(
|
FillBoostLimit(
|
||||||
BoxShowFinishes(box),
|
BoxShowFinishes(box),
|
||||||
box->verticalLayout(),
|
box->verticalLayout(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue