Skip to content

Commit f43b0e4

Browse files
Fix check on buttons returning the correct message
1 parent 222a505 commit f43b0e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

systray/systray_real.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ func (s *Systray) start() {
108108
infoMsg = infoMsg + "- Certificate installed: No\n- Certificate trusted: N/A\n- Certificate expiration date: N/A"
109109
}
110110
pressedButton := utilities.UserPrompt("display dialog \"" + infoMsg + "\" buttons " + buttons + " with title \"Arduino Agent: Manage HTTPS certificate\"")
111-
if strings.Contains(pressedButton, "Install certificate for Safari") {
111+
if strings.Contains(pressedButton, "Install the certificate for Safari") {
112112
cert.GenerateAndInstallCertificates(certDir)
113113
err := config.SetInstallCertsIni(s.currentConfigFilePath.String(), "true")
114114
if err != nil {
115115
log.Errorf("cannot set installCerts value in config.ini: %s", err)
116116
}
117117
s.Restart()
118-
} else if strings.Contains(pressedButton, "Uninstall certificate for Safari") {
118+
} else if strings.Contains(pressedButton, "Uninstall the certificate for Safari") {
119119
err := cert.UninstallCertificates()
120120
if err != nil {
121121
log.Errorf("cannot uninstall certificates something went wrong: %s", err)

0 commit comments

Comments
 (0)