mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: make it build
This commit is contained in:
@@ -688,7 +688,7 @@ void Content::setupContent(
|
||||
inner,
|
||||
st::defaultBox.margin.top()));
|
||||
|
||||
rows->isEmpty() | rpl::start_with_next([=](bool empty)
|
||||
rows->isEmpty() | rpl::on_next([=](bool empty)
|
||||
{
|
||||
wrap->toggle(!empty, anim::type::instant);
|
||||
},
|
||||
@@ -712,7 +712,7 @@ void Content::setupContent(
|
||||
rpl::single(qs("No fonts found.")),
|
||||
st::membersAbout);
|
||||
empty->entity()->sizeValue(
|
||||
) | rpl::start_with_next([=](QSize size)
|
||||
) | rpl::on_next([=](QSize size)
|
||||
{
|
||||
label->move(
|
||||
(size.width() - label->width()) / 2,
|
||||
@@ -809,11 +809,11 @@ void Content::setupContent(
|
||||
_activations = [=]
|
||||
{
|
||||
if (!main) {
|
||||
return rpl::never<Font>() | rpl::type_erased();
|
||||
return rpl::never<Font>() | rpl::type_erased;
|
||||
}
|
||||
return rpl::merge(
|
||||
main->activations()
|
||||
) | rpl::type_erased();
|
||||
) | rpl::type_erased;
|
||||
};
|
||||
_changeChosen = [=](const QString &chosen)
|
||||
{
|
||||
@@ -920,14 +920,14 @@ void AyuUi::FontSelectorBox::prepare() {
|
||||
inner->heightValue(),
|
||||
topContainer->heightValue(),
|
||||
_1 + _2
|
||||
) | rpl::start_with_next([=](int height)
|
||||
) | rpl::on_next([=](int height)
|
||||
{
|
||||
accumulate_max(*max, height);
|
||||
setDimensions(st::boxWidth, qMin(*max, st::boxMaxListHeight));
|
||||
},
|
||||
inner->lifetime());
|
||||
topContainer->heightValue(
|
||||
) | rpl::start_with_next([=](int height)
|
||||
) | rpl::on_next([=](int height)
|
||||
{
|
||||
setInnerTopSkip(height);
|
||||
},
|
||||
@@ -947,7 +947,7 @@ void AyuUi::FontSelectorBox::prepare() {
|
||||
});
|
||||
|
||||
inner->activations(
|
||||
) | rpl::start_with_next([=](const Font &font)
|
||||
) | rpl::on_next([=](const Font &font)
|
||||
{
|
||||
if (inner) {
|
||||
inner->changeChosen(font.id);
|
||||
|
||||
Reference in New Issue
Block a user