Skip to content

Commit

Permalink
Fix build with Xcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Nov 30, 2023
1 parent 2611899 commit fa63a22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});
}
}
Expand Down

0 comments on commit fa63a22

Please sign in to comment.