File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ class ApplicationMain
470
470
const wasConnected = this . daemonRpc . isConnected ;
471
471
IpcMainEventChannel . navigation . notifyReset ?.( ) ;
472
472
this . daemonRpc . disconnect ( ) ;
473
- this . onDaemonDisconnected ( wasConnected ) ;
473
+ this . onDaemonDisconnected ( wasConnected , undefined , true ) ;
474
474
} ;
475
475
476
476
private onResume = ( ) => {
@@ -620,7 +620,7 @@ class ApplicationMain
620
620
}
621
621
} ;
622
622
623
- private onDaemonDisconnected = ( wasConnected : boolean , error ?: Error ) => {
623
+ private onDaemonDisconnected = ( wasConnected : boolean , error ?: Error , planned ?: boolean ) => {
624
624
if ( this . daemonEventListener ) {
625
625
this . daemonRpc . unsubscribeDaemonEventListener ( this . daemonEventListener ) ;
626
626
}
@@ -631,7 +631,7 @@ class ApplicationMain
631
631
SystemNotificationCategory . tunnelState ,
632
632
) ;
633
633
634
- if ( this . tunnelState . tunnelState . state !== 'disconnected' ) {
634
+ if ( this . tunnelState . tunnelState . state !== 'disconnected' && ! planned ) {
635
635
this . notificationController . notifyDaemonDisconnected (
636
636
this . userInterface ?. isWindowVisible ( ) ?? false ,
637
637
this . settings . gui . enableSystemNotifications ,
You can’t perform that action at this time.
0 commit comments