Save and restore selection for the Timeline

This commit is contained in:
Maurice Parker 2020-07-19 11:38:15 -05:00
parent 1b5c9da2d7
commit 7f60c69454
1 changed files with 4 additions and 2 deletions

View File

@ -402,9 +402,11 @@ private extension TimelineModel {
}
func performBlockAndRestoreSelection(_ block: (() -> Void)) {
// let savedSelection = selectedArticleIDs()
let savedArticleIDs = selectedArticleIDs
let savedArticleID = selectedArticleID
block()
// restoreSelection(savedSelection)
selectedArticleIDs = savedArticleIDs
selectedArticleID = savedArticleID
}
func rebuildArticleDictionaries() {