mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Added ability to provide custom text to subscribe button.
This commit is contained in:
@@ -1482,7 +1482,11 @@ void PreviewBox(
|
||||
}) | rpl::flatten_latest();
|
||||
auto button = descriptor.fromSettings
|
||||
? object_ptr<Ui::GradientButton>::fromRaw(
|
||||
Settings::CreateSubscribeButton(controller, box, computeRef))
|
||||
Settings::CreateSubscribeButton({
|
||||
controller,
|
||||
box,
|
||||
computeRef,
|
||||
}))
|
||||
: CreateUnlockButton(box, std::move(unlock));
|
||||
button->resizeToWidth(width);
|
||||
if (!descriptor.fromSettings) {
|
||||
|
Reference in New Issue
Block a user