mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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);
|
workmodeUpdated(mode);
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
Ui::Toast::SetDefaultParent(_body.data());
|
if (isPrimary()) {
|
||||||
|
Ui::Toast::SetDefaultParent(_body.data());
|
||||||
|
}
|
||||||
|
|
||||||
body()->sizeValue(
|
body()->sizeValue(
|
||||||
) | rpl::start_with_next([=](QSize size) {
|
) | rpl::start_with_next([=](QSize size) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue