diff --git a/ShadowsocksX-NG/PreferencesWindowController.swift b/ShadowsocksX-NG/PreferencesWindowController.swift index 62ad829..f6375f6 100644 --- a/ShadowsocksX-NG/PreferencesWindowController.swift +++ b/ShadowsocksX-NG/PreferencesWindowController.swift @@ -187,7 +187,7 @@ class PreferencesWindowController: NSWindowController } func updateProfileBoxVisible() { - if profileMgr.profiles.count <= 1 { + if profileMgr.profiles.count <= 0 { removeButton.isEnabled = false }else{ removeButton.isEnabled = true