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
1 changed files with 1 additions and 7 deletions

View File

@ -498,13 +498,7 @@ void Header::createVolumeToggle() {
}
}
}, lifetime);
_controller->layoutValue(
) | 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);
rebuildVolumeControls(_volume->entity(), false);
rpl::combine(
_widget->positionValue(),