From a479dd6e3b318d2243c416c33c682d4ff724a803 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 29 Dec 2024 12:43:03 +0800 Subject: [PATCH] :art: Support one-click addition of Microsoft Defender exclusions https://github.com/siyuan-note/siyuan/issues/13650 --- kernel/model/elevator_windows.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/model/elevator_windows.go b/kernel/model/elevator_windows.go index f131d8ff2df..ca3662ca5a0 100644 --- a/kernel/model/elevator_windows.go +++ b/kernel/model/elevator_windows.go @@ -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