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 {