From b1a0ebd0cc4b5f306ffc3bb2d0ef7e48d6ae5ed3 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