mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Provided float player delegate only from primary MainWidget.
This commit is contained in:
parent
e8a5ddad37
commit
f095522cd7
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue