🎨 Support one-click addition of Microsoft Defender exclusions https://github.com/siyuan-note/siyuan/issues/13650

This commit is contained in:
Daniel 2024-12-29 12:43:03 +08:00
parent 3ddeb651c3
commit a479dd6e3b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -90,6 +90,9 @@ func AddMicrosoftDefenderExclusion() (err error) {
}
}
Conf.System.MicrosoftDefenderExcluded = true
Conf.Save()
logging.LogInfof("added Windows Defender exclusion path [%s, %s]", installPath, util.WorkspaceDir)
util.PushMsg(Conf.language(102), 5000)
return