mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Use only vertical volume dropdown layout.
This commit is contained in:
parent
5b10b7e15f
commit
d392c7e8f0
1 changed files with 1 additions and 7 deletions
|
@ -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…
Add table
Reference in a new issue