mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Support for ignoring the prompt to add Microsoft Defender exclusions https://github.com/siyuan-note/siyuan/issues/13687
This commit is contained in:
parent
53185297a4
commit
0802c207cc
2 changed files with 13 additions and 0 deletions
|
|
@ -50,6 +50,18 @@ func addMicrosoftDefenderExclusion(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
func ignoreAddMicrosoftDefenderExclusion(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
if !gulu.OS.IsWindows() {
|
||||
return
|
||||
}
|
||||
|
||||
model.Conf.System.MicrosoftDefenderExcluded = true
|
||||
model.Conf.Save()
|
||||
}
|
||||
|
||||
func reloadUI(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue