Skip to content

Commit

Permalink
Allow handling apps just by windows title without bundle identifier (…
Browse files Browse the repository at this point in the history
…Android Emulator Example) (#1388)
  • Loading branch information
jmalczak authored Jan 28, 2023
1 parent 83857df commit af44d2a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Amethyst/Preferences/UserConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -533,13 +533,11 @@ class UserConfiguration: NSObject {
func runningApplicationFloatingBundle(_ runningApplication: BundleIdentifiable) -> FloatingBundle? {
let floatingBundles = self.floatingBundles()

let bundleIdentifier = runningApplication.bundleIdentifier ?? ""

for floatingBundle in floatingBundles {
if floatingBundle.id.contains("*") {
do {
guard let bundleIdentifier = runningApplication.bundleIdentifier else {
continue
}

let pattern = floatingBundle.id
.replacingOccurrences(of: ".", with: "\\.")
.replacingOccurrences(of: "*", with: ".*")
Expand Down

0 comments on commit af44d2a

Please sign in to comment.