mac: clear highlight on panel close

main
Peter Steinberger 2025-12-09 22:40:02 +01:00
parent 2339f1a01d
commit d5517ede45
1 changed files with 5 additions and 0 deletions

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