mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Always show My Stars menu.
This commit is contained in:
parent
e6b76fefa1
commit
a3c79feeba
1 changed files with 1 additions and 10 deletions
|
@ -494,18 +494,9 @@ void SetupPremium(
|
||||||
});
|
});
|
||||||
{
|
{
|
||||||
controller->session().credits().load();
|
controller->session().credits().load();
|
||||||
|
|
||||||
const auto wrap = container->add(
|
|
||||||
object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>(
|
|
||||||
container,
|
|
||||||
object_ptr<Ui::VerticalLayout>(container)));
|
|
||||||
wrap->toggleOn(
|
|
||||||
controller->session().credits().balanceValue(
|
|
||||||
) | rpl::map(rpl::mappers::_1 > 0));
|
|
||||||
wrap->finishAnimating();
|
|
||||||
AddPremiumStar(
|
AddPremiumStar(
|
||||||
AddButtonWithLabel(
|
AddButtonWithLabel(
|
||||||
wrap->entity(),
|
container,
|
||||||
tr::lng_settings_credits(),
|
tr::lng_settings_credits(),
|
||||||
controller->session().credits().balanceValue(
|
controller->session().credits().balanceValue(
|
||||||
) | rpl::map([=](uint64 c) {
|
) | rpl::map([=](uint64 c) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue