From 3752cc575f40d8b3d14d7ff124f1d7aaa5fd78a9 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Mon, 18 Dec 2023 19:45:47 +0100 Subject: [PATCH] notifications - keep center open when disabling DND mode --- .../browser/parts/notifications/notificationsCenter.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/browser/parts/notifications/notificationsCenter.ts b/src/vs/workbench/browser/parts/notifications/notificationsCenter.ts index bc15114d1e6..96839fce1f8 100644 --- a/src/vs/workbench/browser/parts/notifications/notificationsCenter.ts +++ b/src/vs/workbench/browser/parts/notifications/notificationsCenter.ts @@ -74,7 +74,9 @@ export class NotificationsCenter extends Themable implements INotificationsCente } private onDidChangeGlobalDoNotDisturbMode(): void { - this.hide(); // hide the notification center when do not disturb is toggled + if (this.notificationService.isGlobalDoNotDisturbMode) { + this.hide(); // hide the notification center when do not disturb is toggled + } } get isVisible(): boolean {