mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 23:45:44 +00:00
Always show My Stars menu.
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user