mac: clear highlight on panel close
parent
2339f1a01d
commit
d5517ede45
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue