Reset data after folder change
This commit is contained in:
@ -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)")
|
||||
|
@ -203,8 +203,6 @@ struct MainView: App {
|
||||
}
|
||||
|
||||
private func loadContent() {
|
||||
#warning("Remove")
|
||||
content.storage.clearContentPath()
|
||||
guard content.storage.hasContentFolders else {
|
||||
showInitialSheet()
|
||||
return
|
||||
|
Reference in New Issue
Block a user