fix notification crash
This commit is contained in:
parent
f7b96c5056
commit
74e9252d99
@ -87,11 +87,11 @@ void ToastNotificationsManager::showNotification(Notification::Event event,
|
|||||||
hookNotification(notif);
|
hookNotification(notif);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto* screen = moveToProperScreen(notif);
|
|
||||||
|
|
||||||
// Insert new notification into free space.
|
// Insert new notification into free space.
|
||||||
notif->show();
|
notif->show();
|
||||||
|
|
||||||
|
auto* screen = moveToProperScreen(notif);
|
||||||
|
|
||||||
auto notif_new_pos = cornerForNewNotification(screen->availableGeometry());
|
auto notif_new_pos = cornerForNewNotification(screen->availableGeometry());
|
||||||
|
|
||||||
// Make sure notification is finally resized.
|
// Make sure notification is finally resized.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user