mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Provided primary MainWindow as default parent for toasts.
This commit is contained in:
parent
f095522cd7
commit
add6352012
1 changed files with 3 additions and 1 deletions
|
@ -324,7 +324,9 @@ MainWindow::MainWindow(not_null<Controller*> controller)
|
|||
workmodeUpdated(mode);
|
||||
}, lifetime());
|
||||
|
||||
Ui::Toast::SetDefaultParent(_body.data());
|
||||
if (isPrimary()) {
|
||||
Ui::Toast::SetDefaultParent(_body.data());
|
||||
}
|
||||
|
||||
body()->sizeValue(
|
||||
) | rpl::start_with_next([=](QSize size) {
|
||||
|
|
Loading…
Add table
Reference in a new issue