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 fd51fa7356
commit 87110cae0f

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 = ""
}
}