2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Allow empty arg list in rpl next/error handlers.

This commit is contained in:
John Preston
2017-09-27 21:29:13 +03:00
parent 21b1ba1f88
commit 5cc7cb1d85
21 changed files with 78 additions and 47 deletions

View File

@@ -1847,7 +1847,7 @@ void MainWidget::createPlayer() {
_player.create(this);
_player->heightValue()
| rpl::start_with_next(
[this](int) { playerHeightUpdated(); },
[this] { playerHeightUpdated(); },
lifetime());
_player->entity()->setCloseCallback([this] { closeBothPlayers(); });
_playerVolume.create(this);