🎨 Windows/macOS add a option Settings - About - Access authorization code - Follow system lock screen https://github.com/siyuan-note/siyuan/issues/9087

This commit is contained in:
Daniel 2023-09-04 09:05:03 +08:00
parent 300958670a
commit 4ddef21aa6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 17 additions and 0 deletions

View file

@ -281,6 +281,22 @@ func setAccessAuthCode(c *gin.Context) {
return
}
func setFollowSystemLockScreen(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, ok := util.JsonArg(c, ret)
if !ok {
return
}
lockScreenMode := int(arg["lockScreenMode"].(float64))
model.Conf.System.LockScreenMode = lockScreenMode
model.Conf.Save()
return
}
func getSysFonts(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)