2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix volume control disappearing in audio player.

This commit is contained in:
John Preston
2017-12-21 10:50:35 +04:00
parent b20c2b4774
commit aebb40dc1e

View File

@@ -1756,7 +1756,9 @@ void MainWidget::createPlayer() {
}
if (!_player) {
_player.create(this);
_player->heightValue()
rpl::merge(
_player->heightValue() | rpl::map([] { return true; }),
_player->shownValue())
| rpl::start_with_next(
[this] { playerHeightUpdated(); },
lifetime());