File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ export default class Account {
120
120
}
121
121
122
122
public handleDeviceEvent ( deviceEvent : DeviceEvent ) {
123
+ this . delegate . closeNotificationsInCategory ( SystemNotificationCategory . expiry ) ;
124
+
123
125
this . deviceStateValue = deviceEvent . deviceState ;
124
126
125
127
switch ( deviceEvent . deviceState . type ) {
Original file line number Diff line number Diff line change @@ -487,6 +487,10 @@ class ApplicationMain
487
487
488
488
log . info ( 'Connected to the daemon' ) ;
489
489
490
+ this . notificationController . closeNotificationsInCategory (
491
+ SystemNotificationCategory . tunnelState ,
492
+ ) ;
493
+
490
494
// subscribe to events
491
495
try {
492
496
this . daemonEventListener = this . subscribeEvents ( ) ;
@@ -623,6 +627,10 @@ class ApplicationMain
623
627
// Reset the daemon event listener since it's going to be invalidated on disconnect
624
628
this . daemonEventListener = undefined ;
625
629
630
+ this . notificationController . closeNotificationsInCategory (
631
+ SystemNotificationCategory . tunnelState ,
632
+ ) ;
633
+
626
634
if ( this . tunnelState . tunnelState . state !== 'disconnected' ) {
627
635
this . notificationController . notifyDaemonDisconnected (
628
636
this . userInterface ?. isWindowVisible ( ) ?? false ,
You can’t perform that action at this time.
0 commit comments