mac: clear highlight on panel close

This commit is contained in:
Peter Steinberger
2025-12-09 22:40:02 +01:00
parent 2339f1a01d
commit d5517ede45

View File

@@ -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