fix a buid warning

This commit is contained in:
Qiu Yuzhou
2021-06-24 01:21:50 +08:00
parent b59b53940c
commit bb799bbf0b
@@ -214,7 +214,7 @@ class PreferencesWindowController: NSWindowController
NSLog("bind profile \(index)")
if index >= 0 && index < profileMgr.profiles.count {
editingProfile = profileMgr.profiles[index]
let editingProfile = profileMgr.profiles[index]
hostTextField.bind(NSBindingName(rawValue: "value"), to: editingProfile, withKeyPath: "serverHost"
, options: [NSBindingOption.continuouslyUpdatesValue: true])