mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-20 16:02:05 +08:00
fix: repair desktop launcher local view
This commit is contained in:
@@ -74,8 +74,10 @@ func bounds(_ element: AXUIElement) -> [String: Double]? {
|
||||
|
||||
var point = CGPoint.zero
|
||||
var size = CGSize.zero
|
||||
guard AXValueGetValue(positionValue as! AXValue, .cgPoint, &point),
|
||||
AXValueGetValue(sizeValue as! AXValue, .cgSize, &size)
|
||||
guard let positionAxValue = positionValue as? AXValue,
|
||||
let sizeAxValue = sizeValue as? AXValue,
|
||||
AXValueGetValue(positionAxValue, .cgPoint, &point),
|
||||
AXValueGetValue(sizeAxValue, .cgSize, &size)
|
||||
else { return nil }
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user