Skip to content

Commit

Permalink
feat: first blacklist can now match prefixes instead of full ids
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Sep 4, 2020
1 parent e6ded6c commit 10693d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic/Windows.swift
Expand Up @@ -126,7 +126,7 @@ class Windows {

static func refreshIfWindowShouldBeShownToTheUser(_ window: Window, _ screen: NSScreen) {
window.shouldShowTheUser =
!(window.application.runningApplication.bundleIdentifier.flatMap { Preferences.dontShowBlacklist.contains($0) } ?? false) &&
!(window.application.runningApplication.bundleIdentifier.flatMap { id in Preferences.dontShowBlacklist.contains { id.hasPrefix($0) } } ?? false) &&
!(Preferences.appsToShow[App.app.shortcutIndex] == .active && window.application.runningApplication != NSWorkspace.shared.frontmostApplication) &&
!(!Preferences.showHiddenWindows[App.app.shortcutIndex] && window.isHidden) &&
((!Preferences.hideWindowlessApps && window.isWindowlessApp) ||
Expand Down

0 comments on commit 10693d0

Please sign in to comment.