Update settings_ayu.cpp

fix build
This commit is contained in:
Neurotoxin001 2025-07-10 16:29:26 +03:00 committed by GitHub
parent 8bea85e597
commit 12f0b9ef26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -893,12 +893,12 @@ void SetupQoLToggles(not_null<Ui::VerticalLayout*> container) {
tr::ayu_ShowForwardsCount(), tr::ayu_ShowForwardsCount(),
st::settingsButtonNoIcon st::settingsButtonNoIcon
)->toggleOn( )->toggleOn(
rpl::single(settings.showForwards) rpl::single(settings->showForwards)
)->toggledValue( )->toggledValue(
) | rpl::filter( ) | rpl::filter(
[=](bool enabled) [=](bool enabled)
{ {
return (enabled != settings.showForwards); return (enabled != settings->showForwards);
}) | start_with_next( }) | start_with_next(
[=](bool enabled) [=](bool enabled)
{ {
@ -912,12 +912,12 @@ void SetupQoLToggles(not_null<Ui::VerticalLayout*> container) {
tr::ayu_ShowForwardsRatio(), tr::ayu_ShowForwardsRatio(),
st::settingsButtonNoIcon st::settingsButtonNoIcon
)->toggleOn( )->toggleOn(
rpl::single(settings.showForwardsRatio) rpl::single(settings->showForwardsRatio)
)->toggledValue( )->toggledValue(
) | rpl::filter( ) | rpl::filter(
[=](bool enabled) [=](bool enabled)
{ {
return (enabled != settings.showForwardsRatio); return (enabled != settings->showForwardsRatio);
}) | start_with_next( }) | start_with_next(
[=](bool enabled) [=](bool enabled)
{ {