Reset data after folder change

This commit is contained in:
Christoph Hagen
2024-12-17 23:24:07 +01:00
parent 9a53e020a7
commit 9c828ff80a
9 changed files with 51 additions and 16 deletions

View File

@ -52,10 +52,8 @@ struct InitialSetupView: View {
set(message: "Failed to set content path")
return
}
print("Selected folder, initializing storage")
DispatchQueue.main.async {
do {
print("Loading disk content")
try content.loadFromDisk()
} catch {
set(message: "Failed to load database: \(error)")

View File

@ -203,8 +203,6 @@ struct MainView: App {
}
private func loadContent() {
#warning("Remove")
content.storage.clearContentPath()
guard content.storage.hasContentFolders else {
showInitialSheet()
return