From bb799bbf0b9a6373494381874f0804418136e4d5 Mon Sep 17 00:00:00 2001 From: Qiu Yuzhou Date: Thu, 24 Jun 2021 01:21:50 +0800 Subject: [PATCH] fix a buid warning --- ShadowsocksX-NG/PreferencesWindowController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShadowsocksX-NG/PreferencesWindowController.swift b/ShadowsocksX-NG/PreferencesWindowController.swift index cf4125df..470330e1 100644 --- a/ShadowsocksX-NG/PreferencesWindowController.swift +++ b/ShadowsocksX-NG/PreferencesWindowController.swift @@ -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])