mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Fix build with Xcode.
This commit is contained in:
parent
2611899448
commit
fa63a220fa
2 changed files with 8 additions and 7 deletions
|
@ -499,12 +499,13 @@ TextWithEntities ThemeDocumentBox::subtitle() {
|
|||
}
|
||||
|
||||
rpl::producer<QString> ThemeDocumentBox::button() {
|
||||
return _parent->data()->out()
|
||||
? nullptr
|
||||
: rpl::conditional(
|
||||
WallPaperRevertableValue(_parent->data()),
|
||||
tr::lng_action_set_wallpaper_remove(),
|
||||
tr::lng_action_set_wallpaper_button());
|
||||
if (_parent->data()->out()) {
|
||||
return {};
|
||||
}
|
||||
return rpl::conditional(
|
||||
WallPaperRevertableValue(_parent->data()),
|
||||
tr::lng_action_set_wallpaper_remove(),
|
||||
tr::lng_action_set_wallpaper_button());
|
||||
}
|
||||
|
||||
ClickHandlerPtr ThemeDocumentBox::createViewLink() {
|
||||
|
|
|
@ -92,7 +92,7 @@ CaptionFullView::CaptionFullView(not_null<Controller*> controller)
|
|||
} else if (type == QEvent::MouseButtonRelease) {
|
||||
if (const auto activated = ClickHandler::unpressed()) {
|
||||
ActivateClickHandler(_wrap.get(), activated, {
|
||||
mouse()->button(),
|
||||
mouse()->button(), QVariant(),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue