Use only vertical volume dropdown layout.

This commit is contained in:
John Preston 2023-07-20 10:33:58 +04:00
parent 5b10b7e15f
commit d392c7e8f0

View file

@ -498,13 +498,7 @@ void Header::createVolumeToggle() {
} }
} }
}, lifetime); }, lifetime);
_controller->layoutValue( rebuildVolumeControls(_volume->entity(), false);
) | rpl::map([](const Layout &layout) {
return (layout.headerLayout == HeaderLayout::Outside);
}) | rpl::distinct_until_changed(
) | rpl::start_with_next([=](bool horizontal) {
rebuildVolumeControls(_volume->entity(), horizontal);
}, lifetime);
rpl::combine( rpl::combine(
_widget->positionValue(), _widget->positionValue(),