mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-11-02 07:54:03 +00:00
修正menu bar 颜色问题
修正menu bar 颜色问题
This commit is contained in:
@@ -119,6 +119,8 @@ class PreferencesWindowController: NSWindowController
|
||||
profilesTableView.removeRows(at: IndexSet(integer: index), withAnimation: .effectFade)
|
||||
profilesTableView.endUpdates()
|
||||
}
|
||||
self.profilesTableView.scrollRowToVisible(index)
|
||||
self.profilesTableView.selectRowIndexes(IndexSet(integer: index), byExtendingSelection: false)
|
||||
updateProfileBoxVisible()
|
||||
}
|
||||
|
||||
@@ -258,7 +260,7 @@ class PreferencesWindowController: NSWindowController
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
// For NSTableViewDataSource
|
||||
// MARK: For NSTableViewDataSource
|
||||
|
||||
func numberOfRows(in tableView: NSTableView) -> Int {
|
||||
if let mgr = profileMgr {
|
||||
@@ -285,7 +287,7 @@ class PreferencesWindowController: NSWindowController
|
||||
return ""
|
||||
}
|
||||
|
||||
// Drag & Drop reorder rows
|
||||
// MARK: Drag & Drop reorder rows
|
||||
|
||||
func tableView(_ tableView: NSTableView, pasteboardWriterForRow row: Int) -> NSPasteboardWriting? {
|
||||
let item = NSPasteboardItem()
|
||||
|
||||
Reference in New Issue
Block a user