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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user