修正menu bar 颜色问题

修正menu bar 颜色问题
This commit is contained in:
qinyuhang
2016-10-09 15:05:20 +08:00
parent dc9f045ec7
commit 65a009eed6
2 changed files with 42 additions and 36 deletions
@@ -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()