mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-03-26 03:11:19 +01:00
feat: remove redo items in main thread
This commit is contained in:
@@ -100,7 +100,9 @@ final class History: ObservableObject {
|
||||
}
|
||||
}
|
||||
}
|
||||
redoStack.removeAll()
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.redoStack.removeAll()
|
||||
}
|
||||
withPersistence(\.viewContext) { [weak memo] context in
|
||||
memo?.updatedAt = .now
|
||||
try context.saveIfNeeded()
|
||||
|
||||
Reference in New Issue
Block a user