🎨 Windows/macOS 桌面端支持开机启动 https://github.com/siyuan-note/siyuan/issues/6833

This commit is contained in:
Liang Ding 2022-12-09 16:35:11 +08:00
parent ad1924890b
commit 5a4b64464d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
9 changed files with 43 additions and 2 deletions

View file

@ -333,6 +333,20 @@ func setUploadErrLog(c *gin.Context) {
time.Sleep(time.Second * 3)
}
func setAutoLaunch(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, ok := util.JsonArg(c, ret)
if !ok {
return
}
autoLaunch := arg["autoLaunch"].(bool)
model.Conf.System.AutoLaunch = autoLaunch
model.Conf.Save()
}
func setDownloadInstallPkg(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)