Improve storage

This commit is contained in:
Christoph Hagen
2024-12-19 16:25:05 +01:00
parent 9c828ff80a
commit 41887a1401
30 changed files with 926 additions and 831 deletions

View File

@ -162,7 +162,7 @@ struct MainView: App {
}.pickerStyle(.segmented)
}
ToolbarItem(placement: .primaryAction) {
if content.storage.hasContentFolders {
if content.storage.contentScope != nil {
Button(action: save) {
Text("Save")
}
@ -203,7 +203,7 @@ struct MainView: App {
}
private func loadContent() {
guard content.storage.hasContentFolders else {
guard content.storage.contentScope != nil else {
showInitialSheet()
return
}