diff options
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index 59f81141cd..a844655388 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -470,7 +470,7 @@ class ApplicationMain const wasConnected = this.daemonRpc.isConnected; IpcMainEventChannel.navigation.notifyReset?.(); this.daemonRpc.disconnect(); - this.onDaemonDisconnected(wasConnected); + this.onDaemonDisconnected(wasConnected, undefined, true); }; private onResume = () => { @@ -620,7 +620,7 @@ class ApplicationMain } }; - private onDaemonDisconnected = (wasConnected: boolean, error?: Error) => { + private onDaemonDisconnected = (wasConnected: boolean, error?: Error, planned?: boolean) => { if (this.daemonEventListener) { this.daemonRpc.unsubscribeDaemonEventListener(this.daemonEventListener); } @@ -631,7 +631,7 @@ class ApplicationMain SystemNotificationCategory.tunnelState, ); - if (this.tunnelState.tunnelState.state !== 'disconnected') { + if (this.tunnelState.tunnelState.state !== 'disconnected' && !planned) { this.notificationController.notifyDaemonDisconnected( this.userInterface?.isWindowVisible() ?? false, this.settings.gui.enableSystemNotifications, |
