mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-10-20 22:44:11 +00:00
多选的时候disable复制按钮
This commit is contained in:
@@ -371,6 +371,11 @@ class PreferencesWindowController: NSWindowController
|
||||
func tableViewSelectionDidChange(_ notification: Notification) {
|
||||
if profilesTableView.selectedRow >= 0 {
|
||||
bindProfile(profilesTableView.selectedRow)
|
||||
if (profilesTableView.selectedRowIndexes.count > 1){
|
||||
duplicateProfileButton.isEnabled = false
|
||||
} else {
|
||||
duplicateProfileButton.isEnabled = true
|
||||
}
|
||||
} else {
|
||||
if !profileMgr.profiles.isEmpty {
|
||||
let index = IndexSet(integer: profileMgr.profiles.count - 1)
|
||||
|
||||
Reference in New Issue
Block a user