Restore selection in timeline after reload due to font size change.
This commit is contained in:
parent
2797c607c3
commit
765a91dd34
|
@ -147,8 +147,10 @@ class TimelineViewController: NSViewController, UndoableCommandRunner {
|
||||||
cellAppearance = TimelineCellAppearance(theme: appDelegate.currentTheme, showAvatar: false, fontSize: fontSize)
|
cellAppearance = TimelineCellAppearance(theme: appDelegate.currentTheme, showAvatar: false, fontSize: fontSize)
|
||||||
cellAppearanceWithAvatar = TimelineCellAppearance(theme: appDelegate.currentTheme, showAvatar: true, fontSize: fontSize)
|
cellAppearanceWithAvatar = TimelineCellAppearance(theme: appDelegate.currentTheme, showAvatar: true, fontSize: fontSize)
|
||||||
updateRowHeights()
|
updateRowHeights()
|
||||||
|
performBlockAndRestoreSelection {
|
||||||
tableView.reloadData()
|
tableView.reloadData()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: - API
|
// MARK: - API
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue