mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 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:
parent
300958670a
commit
4ddef21aa6
2 changed files with 17 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue