mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Fix a PiP crash with Qt 6.9
This commit is contained in:
parent
8b92ab25c7
commit
c261c3367a
1 changed files with 4 additions and 0 deletions
|
@ -362,6 +362,10 @@ void PipPanel::init() {
|
|||
) | rpl::filter(rpl::mappers::_1) | rpl::start_with_next([=] {
|
||||
// Workaround Qt's forced transient parent.
|
||||
Ui::Platform::ClearTransientParent(widget());
|
||||
}, rp()->lifetime());
|
||||
|
||||
rp()->shownValue(
|
||||
) | rpl::filter(rpl::mappers::_1) | rpl::start_with_next([=] {
|
||||
Ui::Platform::SetWindowMargins(widget(), _padding);
|
||||
}, rp()->lifetime());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue