Use only vertical volume dropdown layout.
This commit is contained in:
parent
5b10b7e15f
commit
d392c7e8f0
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue