mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Avoid casting Any
This commit is contained in:
parent
863c9a7a70
commit
6d97aba32d
@ -23,16 +23,12 @@ class PreferencesViewController: NSViewController {
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func updateMpdHost(_ sender: Any) {
|
||||
guard let mpdHostField = sender as? NSTextField else { return }
|
||||
|
||||
preferences.mpdHost = mpdHostField.stringValue
|
||||
@IBAction func updateMpdHost(_ sender: NSTextField) {
|
||||
preferences.mpdHost = sender.stringValue
|
||||
}
|
||||
|
||||
@IBAction func updateMpdPort(_ sender: Any) {
|
||||
guard let mpdPortField = sender as? NSTextField else { return }
|
||||
|
||||
preferences.mpdPort = mpdPortField.integerValue
|
||||
@IBAction func updateMpdPort(_ sender: NSTextField) {
|
||||
preferences.mpdPort = sender.integerValue
|
||||
}
|
||||
|
||||
@IBOutlet var mpdHostField: NSTextField!
|
||||
|
||||
Loading…
Reference in New Issue
Block a user