2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 06:07:45 +00:00

Provided primary MainWindow as default parent for toasts.

This commit is contained in:
23rd 2022-02-20 14:25:44 +03:00 committed by John Preston
parent f095522cd7
commit add6352012

View File

@ -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) {