Skip to content

Commit

Permalink
feat: blacklist mcafee safari host by default (closes #386)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Aug 25, 2020
1 parent b13fabb commit 1bb59f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/logic/Preferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Preferences {
"hideStatusIcons": "false",
"startAtLogin": "true",
"menubarIcon": "0",
"dontShowBlacklist": "",
"dontShowBlacklist": ["com.McAfee.McAfeeSafariHost"].joined(separator: "\n"),
"disableShortcutsBlacklist": ["com.realvnc.vncviewer", "com.microsoft.rdc.macos", "com.teamviewer.TeamViewer", "org.virtualbox.app.VirtualBoxVM", "com.parallels.", "com.citrix.XenAppViewer"].joined(separator: "\n"),
"disableShortcutsBlacklistOnlyFullscreen": "true",
"updatePolicy": "1",
Expand Down
4 changes: 2 additions & 2 deletions src/ui/preferences-window/tabs/BlacklistsTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import Sparkle
class BlacklistsTab {
static func initTab() -> NSView {
let dontShowBlacklistLabel = NSTextField(labelWithString: NSLocalizedString("Don’t show windows from these apps", comment: ""))
let dontShowBlacklist = LabelAndControl.makeTextArea(50, 3, ["com.apple.Safari", "com.apple.TextEdit"].joined(separator: "\n"), "dontShowBlacklist")
let dontShowBlacklist = LabelAndControl.makeTextArea(50, 3, Preferences.dontShowBlacklist.joined(separator: "\n"), "dontShowBlacklist")
let disableShortcutsBlacklistLabel = NSTextField(labelWithString: NSLocalizedString("Ignore shortcuts while a window from these apps is active", comment: ""))
let disableShortcutsBlacklistCheckbox = LabelAndControl.makeLabelWithCheckbox(NSLocalizedString("Only if the window is fullscreen", comment: ""), "disableShortcutsBlacklistOnlyFullscreen", labelPosition: .right)
let disableShortcutsBlacklist = LabelAndControl.makeTextArea(50, 3, ["com.apple.Safari", "com.apple.TextEdit"].joined(separator: "\n"), "disableShortcutsBlacklist")
let disableShortcutsBlacklist = LabelAndControl.makeTextArea(50, 3, Preferences.disableShortcutsBlacklist.joined(separator: "\n"), "disableShortcutsBlacklist")

let grid = GridView([
[dontShowBlacklistLabel],
Expand Down

0 comments on commit 1bb59f1

Please sign in to comment.