1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

We can simplify this

This commit is contained in:
Daniel Barber 2020-01-17 17:48:35 -05:00
parent 26646ea88e
commit 0e996cbb4c
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -120,15 +120,11 @@ class WindowController: NSWindowController {
trackRemaining.stringValue = time.formattedTime
}
func clearSearchQuery() {
searchQuery.stringValue = ""
}
@objc func willDisconnect() {
DispatchQueue.main.async {
App.store.dispatch(ClearState())
self.clearSearchQuery()
App.store.dispatch(SetSearchQuery(searchQuery: ""))
self.searchQuery.stringValue = ""
}
}