Skip to content

Commit

Permalink
🎨 Support one-click addition of Microsoft Defender exclusions #13650
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 29, 2024
1 parent 3ddeb65 commit a479dd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/model/elevator_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a479dd6

Please sign in to comment.