Skip to content

Commit d543393

Browse files
committed
fix: app would sometimes crash (closes #4244)
1 parent ee010de commit d543393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api-wrappers/AXUIElement.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ extension AXUIElement {
204204
/// with only normal approach: we miss other-Spaces windows
205205
/// with only brute-force approach: we miss windows when the app launches (e.g. launch Note.app: first window is not found by brute-force)
206206
func allWindows(_ pid: pid_t) throws -> [AXUIElement] {
207-
let aWindows = try! windows()
207+
let aWindows = try windows()
208208
let bWindows = AXUIElement.windowsByBruteForce(pid)
209209
return Array(Set(aWindows + bWindows))
210210
}

0 commit comments

Comments
 (0)