From d5517ede45f033a91f47a07ed6f659eb0e2b0c54 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 9 Dec 2025 22:40:02 +0100 Subject: [PATCH] mac: clear highlight on panel close --- apps/macos/Sources/Clawdis/WebChatWindow.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/macos/Sources/Clawdis/WebChatWindow.swift b/apps/macos/Sources/Clawdis/WebChatWindow.swift index 783bf1100..9dac038dc 100644 --- a/apps/macos/Sources/Clawdis/WebChatWindow.swift +++ b/apps/macos/Sources/Clawdis/WebChatWindow.swift @@ -322,6 +322,11 @@ final class WebChatWindowController: NSWindowController, WKNavigationDelegate, N self.notifyPanelClosedOnce() } + func windowWillClose(_ notification: Notification) { + guard case .panel = self.presentation else { return } + self.notifyPanelClosedOnce() + } + private func notifyPanelClosedOnce() { guard !self.panelCloseNotified else { return } self.panelCloseNotified = true