Skip to content

Commit d7d5b1b

Browse files
authored
Skip CLI session expired notifcation if notifications are disabled (#3266)
1 parent 631ef4e commit d7d5b1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/server/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,10 +766,11 @@ func (s *Server) GetConfig(_ context.Context, _ *proto.GetConfigRequest) (*proto
766766
DisableNotifications: s.config.DisableNotifications,
767767
}, nil
768768
}
769+
769770
func (s *Server) onSessionExpire() {
770771
if runtime.GOOS != "windows" {
771772
isUIActive := internal.CheckUIApp()
772-
if !isUIActive {
773+
if !isUIActive && !s.config.DisableNotifications {
773774
if err := sendTerminalNotification(); err != nil {
774775
log.Errorf("send session expire terminal notification: %v", err)
775776
}

0 commit comments

Comments
 (0)