fix(notification): close visible notifications during destroy on Windows
This commit is contained in:
1 parent
5da9945792
commit
d019347e03
1 file changed
+5
@@ -195,6 +195,11 @@ export function createNotificationService(deps: NotificationServiceDependencies)
|
||||
clearTimeout(batch.timer);
|
||||
}
|
||||
activeBatches.clear();
|
||||
// Dismiss any still-visible notifications so Windows toast host does not
|
||||
// leave ghost toasts after quit.
|
||||
for (const notification of activeNotifications) {
|
||||
try { notification.close(); } catch { /* toast may have already closed */ }
|
||||
}
|
||||
activeNotifications.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user