mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix subscription from preview box.
This commit is contained in:
parent
6260f258bb
commit
7b4fca57ae
1 changed files with 7 additions and 5 deletions
|
@ -1464,11 +1464,13 @@ void PreviewBox(
|
||||||
Settings::CreateSubscribeButton(controller, box, computeRef))
|
Settings::CreateSubscribeButton(controller, box, computeRef))
|
||||||
: CreateUnlockButton(box, std::move(unlock));
|
: CreateUnlockButton(box, std::move(unlock));
|
||||||
button->resizeToWidth(width);
|
button->resizeToWidth(width);
|
||||||
button->setClickedCallback([=] {
|
if (!descriptor.fromSettings) {
|
||||||
Settings::ShowPremium(
|
button->setClickedCallback([=] {
|
||||||
controller,
|
Settings::ShowPremium(
|
||||||
Settings::LookupPremiumRef(state->selected.current()));
|
controller,
|
||||||
});
|
Settings::LookupPremiumRef(state->selected.current()));
|
||||||
|
});
|
||||||
|
}
|
||||||
box->setShowFinishedCallback([=, raw = button.data()] {
|
box->setShowFinishedCallback([=, raw = button.data()] {
|
||||||
state->showFinished = true;
|
state->showFinished = true;
|
||||||
if (base::take(state->preloadScheduled)) {
|
if (base::take(state->preloadScheduled)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue