Reenable the code that draws the grid in the timeline.

This commit is contained in:
Brent Simmons 2018-02-19 21:25:11 -08:00
parent 7ed83994d0
commit 6e875888c4
2 changed files with 10 additions and 10 deletions

View File

@ -64,17 +64,17 @@ class TimelineTableRowView : NSTableRowView {
path.stroke()
}
// override func draw(_ dirtyRect: NSRect) {
//
// super.draw(dirtyRect)
//
// if cellAppearance.drawsGrid && !isSelected && !isNextRowSelected {
// drawSeparator(in: dirtyRect)
// }
// }
override func draw(_ dirtyRect: NSRect) {
super.draw(dirtyRect)
if cellAppearance.drawsGrid && !isSelected && !isNextRowSelected {
drawSeparator(in: dirtyRect)
}
}
func invalidateGridRect() {
// setNeedsDisplay(gridRect)
setNeedsDisplay(gridRect)
}
}

View File

@ -515,7 +515,7 @@ extension TimelineViewController: NSTableViewDelegate {
func tableViewSelectionDidChange(_ notification: Notification) {
// tableView.redrawGrid()
tableView.redrawGrid()
if selectedArticles.isEmpty {
postTimelineSelectionDidChangeNotification(nil)