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());