mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02: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