mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +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);
|
||||
}, lifetime());
|
||||
|
||||
Ui::Toast::SetDefaultParent(_body.data());
|
||||
if (isPrimary()) {
|
||||
Ui::Toast::SetDefaultParent(_body.data());
|
||||
}
|
||||
|
||||
body()->sizeValue(
|
||||
) | rpl::start_with_next([=](QSize size) {
|
||||
|
Reference in New Issue
Block a user