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:
parent
26646ea88e
commit
0e996cbb4c
@ -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 = ""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user