Save and restore selection for the Timeline
This commit is contained in:
parent
1b5c9da2d7
commit
7f60c69454
|
@ -402,9 +402,11 @@ private extension TimelineModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
func performBlockAndRestoreSelection(_ block: (() -> Void)) {
|
func performBlockAndRestoreSelection(_ block: (() -> Void)) {
|
||||||
// let savedSelection = selectedArticleIDs()
|
let savedArticleIDs = selectedArticleIDs
|
||||||
|
let savedArticleID = selectedArticleID
|
||||||
block()
|
block()
|
||||||
// restoreSelection(savedSelection)
|
selectedArticleIDs = savedArticleIDs
|
||||||
|
selectedArticleID = savedArticleID
|
||||||
}
|
}
|
||||||
|
|
||||||
func rebuildArticleDictionaries() {
|
func rebuildArticleDictionaries() {
|
||||||
|
|
Loading…
Reference in New Issue