mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Provided primary MainWindow as default parent for toasts.
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user