mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +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))
|
||||
: CreateUnlockButton(box, std::move(unlock));
|
||||
button->resizeToWidth(width);
|
||||
button->setClickedCallback([=] {
|
||||
Settings::ShowPremium(
|
||||
controller,
|
||||
Settings::LookupPremiumRef(state->selected.current()));
|
||||
});
|
||||
if (!descriptor.fromSettings) {
|
||||
button->setClickedCallback([=] {
|
||||
Settings::ShowPremium(
|
||||
controller,
|
||||
Settings::LookupPremiumRef(state->selected.current()));
|
||||
});
|
||||
}
|
||||
box->setShowFinishedCallback([=, raw = button.data()] {
|
||||
state->showFinished = true;
|
||||
if (base::take(state->preloadScheduled)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue