From 10693d03469680c0830985307fd686405477ee75 Mon Sep 17 00:00:00 2001 From: Louis Pontoise Date: Fri, 4 Sep 2020 13:48:56 +0900 Subject: [PATCH] feat: first blacklist can now match prefixes instead of full ids --- src/logic/Windows.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic/Windows.swift b/src/logic/Windows.swift index c5e44fac..4196b1b7 100644 --- a/src/logic/Windows.swift +++ b/src/logic/Windows.swift @@ -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) ||