Restore selection in timeline after reload due to font size change.

This commit is contained in:
Brent Simmons 2018-02-07 21:48:51 -08:00
parent 2797c607c3
commit 765a91dd34
1 changed files with 3 additions and 1 deletions

View File

@ -147,8 +147,10 @@ class TimelineViewController: NSViewController, UndoableCommandRunner {
cellAppearance = TimelineCellAppearance(theme: appDelegate.currentTheme, showAvatar: false, fontSize: fontSize)
cellAppearanceWithAvatar = TimelineCellAppearance(theme: appDelegate.currentTheme, showAvatar: true, fontSize: fontSize)
updateRowHeights()
performBlockAndRestoreSelection {
tableView.reloadData()
}
}
// MARK: - API