fix: prevent rare crash seen in app center
Stacktrace: function signature specialization <Arg[1] = Dead> of generic specialization <[__C.AXUIElementRef]> of (extension in AltTab):__C.AXUIElementRef.attribute<A>(Swift.String, A.Type) throws -> A? AXUIElement.swift:36
This commit is contained in:
1 parent
6ed97c4542
commit
6ca58b1ddb
1 file changed
+1
-1
@@ -31,7 +31,7 @@ extension AXUIElement {
|
||||
return try axCallWhichCanThrow(AXUIElementGetPid(self, &pid), &pid)
|
||||
}
|
||||
|
||||
func attribute<T>(_ key: String, _ type: T.Type) throws -> T? {
|
||||
func attribute<T>(_ key: String, _ _: T.Type) throws -> T? {
|
||||
var value: AnyObject?
|
||||
return try axCallWhichCanThrow(AXUIElementCopyAttributeValue(self, key as CFString, &value), &value) as? T
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user