@@ -33,7 +33,7 @@ import (
33
33
var tr = i18n .Tr
34
34
35
35
// CheckForUpdate returns the latest available version if greater than
36
- // the one running and it makes sense to check for an udpate , nil in all other cases
36
+ // the one running and it makes sense to check for an update , nil in all other cases
37
37
func CheckForUpdate (currentVersion * semver.Version ) * semver.Version {
38
38
if ! shouldCheckForUpdate (currentVersion ) {
39
39
return nil
@@ -71,7 +71,7 @@ func checkForUpdate(currentVersion *semver.Version) *semver.Version {
71
71
// NotifyNewVersionIsAvailable prints information about the new latestVersion
72
72
func NotifyNewVersionIsAvailable (latestVersion string ) {
73
73
feedback .Errorf ("\n \n %s %s → %s\n %s" ,
74
- ansi .Color (tr ("A new release of arduino-cli is available:" ), "yellow" ),
74
+ ansi .Color (tr ("A new release of Arduino CLI is available:" ), "yellow" ),
75
75
ansi .Color (globals .VersionInfo .VersionString , "cyan" ),
76
76
ansi .Color (latestVersion , "cyan" ),
77
77
ansi .Color ("https://arduino.github.io/arduino-cli/latest/installation/#latest-packages" , "yellow" ))
@@ -85,8 +85,8 @@ func shouldCheckForUpdate(currentVersion *semver.Version) bool {
85
85
return false
86
86
}
87
87
88
- if configuration .Settings .GetBool ("updater.disable_notification " ) {
89
- // Don't check if the user disable the notification
88
+ if ! configuration .Settings .GetBool ("updater.enable_notification " ) {
89
+ // Don't check if the user disabled the notification
90
90
return false
91
91
}
92
92
0 commit comments