mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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);
|
}, 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(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue