This commit is contained in:
Liang Ding 2022-10-30 01:02:14 +08:00
parent 710e703867
commit 0211e15fc9
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 5 additions and 5 deletions

View file

@ -312,7 +312,7 @@ func setGoogleAnalytics(c *gin.Context) {
}
googleAnalytics := arg["googleAnalytics"].(bool)
model.Conf.System.GoogleAnalytics = googleAnalytics
model.Conf.System.DisableGoogleAnalytics = googleAnalytics
model.Conf.Save()
}

View file

@ -39,7 +39,7 @@ type System struct {
NetworkProxy *NetworkProxy `json:"networkProxy"`
UploadErrLog bool `json:"uploadErrLog"`
GoogleAnalytics bool `json:"googleAnalytics"`
DisableGoogleAnalytics bool `json:"disableGoogleAnalytics"`
DownloadInstallPkg bool `json:"downloadInstallPkg"`
}

View file

@ -292,7 +292,7 @@ func InitConf() {
})
}
if !Conf.System.GoogleAnalytics {
if Conf.System.DisableGoogleAnalytics {
logging.LogInfof("user has disabled [Google Analytics]")
}