From 467b9611628424ec926ebf7643c022193500d5a7 Mon Sep 17 00:00:00 2001 From: qinyuhang Date: Sun, 5 Feb 2017 22:44:28 +0800 Subject: [PATCH] Remove OTA in View controller --- ShadowsocksX-NG/PreferencesWindowController.swift | 5 ----- .../zh-Hans.lproj/PreferencesWindowController.strings | 3 --- 2 files changed, 8 deletions(-) diff --git a/ShadowsocksX-NG/PreferencesWindowController.swift b/ShadowsocksX-NG/PreferencesWindowController.swift index 337c275..aea5110 100644 --- a/ShadowsocksX-NG/PreferencesWindowController.swift +++ b/ShadowsocksX-NG/PreferencesWindowController.swift @@ -29,8 +29,6 @@ class PreferencesWindowController: NSWindowController @IBOutlet weak var remarkTextField: NSTextField! @IBOutlet weak var groupTextField: NSTextField! - @IBOutlet weak var otaCheckBoxBtn: NSButton! - @IBOutlet weak var copyURLBtn: NSButton! @IBOutlet weak var removeButton: NSButton! @@ -234,8 +232,6 @@ class PreferencesWindowController: NSWindowController ObfsParamTextField.bind("value", to: editingProfile, withKeyPath: "ssrObfsParam", options: [NSContinuouslyUpdatesValueBindingOption: true]) groupTextField.bind("value", to: editingProfile, withKeyPath: "ssrGroup", options: [NSContinuouslyUpdatesValueBindingOption: true]) - otaCheckBoxBtn.bind("value", to: editingProfile, withKeyPath: "ota" - , options: [NSContinuouslyUpdatesValueBindingOption: true]) } else { editingProfile = nil hostTextField.unbind("value") @@ -251,7 +247,6 @@ class PreferencesWindowController: NSWindowController remarkTextField.unbind("value") - otaCheckBoxBtn.unbind("value") } } diff --git a/ShadowsocksX-NG/zh-Hans.lproj/PreferencesWindowController.strings b/ShadowsocksX-NG/zh-Hans.lproj/PreferencesWindowController.strings index aa2937f..d005028 100644 --- a/ShadowsocksX-NG/zh-Hans.lproj/PreferencesWindowController.strings +++ b/ShadowsocksX-NG/zh-Hans.lproj/PreferencesWindowController.strings @@ -26,9 +26,6 @@ /* Class = "NSTextFieldCell"; title = "Obfs Param"; ObjectID = "g7c-fW-7J4"; */ "g7c-fW-7J4.title" = "混淆参数:"; -/* Class = "NSButtonCell"; title = "Enable OTA"; ObjectID = "hRZ-Rp-I5e"; */ -"hRZ-Rp-I5e.title" = "启用 OTA"; - /* Class = "NSButtonCell"; title = "Cacnel"; ObjectID = "j03-9E-uHW"; */ "j03-9E-uHW.title" = "取消";