Skip to content

Commit 026935f

Browse files
Do not restart the Agent if no action is performed on the certificate
1 parent 7e2b8d4 commit 026935f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

systray/systray_real.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func (s *Systray) start() {
114114
if err != nil {
115115
log.Errorf("cannot set installCerts value in config.ini: %s", err)
116116
}
117+
s.Restart()
117118
} else if strings.Contains(pressedButton, "Uninstall certificate for Safari") {
118119
err := cert.UninstallCertificates()
119120
if err != nil {
@@ -125,8 +126,8 @@ func (s *Systray) start() {
125126
log.Errorf("cannot set installCerts value in config.ini: %s", err)
126127
}
127128
}
129+
s.Restart()
128130
}
129-
s.Restart()
130131
case <-mPause.ClickedCh:
131132
s.Pause()
132133
case <-mQuit.ClickedCh:

0 commit comments

Comments
 (0)