mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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();
|
_callTopBar->finishAnimating();
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::App().setDefaultFloatPlayerDelegate(floatPlayerDelegate());
|
if (isPrimary()) {
|
||||||
|
Core::App().setDefaultFloatPlayerDelegate(floatPlayerDelegate());
|
||||||
|
}
|
||||||
Core::App().floatPlayerClosed(
|
Core::App().floatPlayerClosed(
|
||||||
) | rpl::start_with_next([=](FullMsgId itemId) {
|
) | rpl::start_with_next([=](FullMsgId itemId) {
|
||||||
floatPlayerClosed(itemId);
|
floatPlayerClosed(itemId);
|
||||||
|
|
Loading…
Add table
Reference in a new issue