2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Provided float player delegate only from primary MainWidget.

This commit is contained in:
23rd
2022-02-20 13:38:41 +03:00
committed by John Preston
parent e8a5ddad37
commit f095522cd7

View File

@@ -251,7 +251,9 @@ MainWidget::MainWidget(
_callTopBar->finishAnimating();
}
Core::App().setDefaultFloatPlayerDelegate(floatPlayerDelegate());
if (isPrimary()) {
Core::App().setDefaultFloatPlayerDelegate(floatPlayerDelegate());
}
Core::App().floatPlayerClosed(
) | rpl::start_with_next([=](FullMsgId itemId) {
floatPlayerClosed(itemId);