mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-25 15:18:38 +00:00
macOS: fix VoiceWakeOverlayController exclusivity violation #39275
This commit is contained in:
committed by
Peter Steinberger
parent
eebee84093
commit
58ae5582f4
@@ -64,15 +64,14 @@ enum OverlayPanelFactory {
|
||||
@MainActor
|
||||
static func present(
|
||||
window: NSWindow?,
|
||||
isVisible: inout Bool,
|
||||
isFirstPresent: Bool,
|
||||
target: NSRect,
|
||||
startOffsetY: CGFloat = -6,
|
||||
onFirstPresent: (() -> Void)? = nil,
|
||||
onAlreadyVisible: (NSWindow) -> Void)
|
||||
{
|
||||
guard let window else { return }
|
||||
if !isVisible {
|
||||
isVisible = true
|
||||
if isFirstPresent {
|
||||
onFirstPresent?()
|
||||
let start = target.offsetBy(dx: 0, dy: startOffsetY)
|
||||
self.animatePresent(window: window, from: start, to: target)
|
||||
|
||||
Reference in New Issue
Block a user