Rename the default section to Workspace

💘 Generated with Crush

Assisted-by: Crush:kimi-k3
This commit is contained in:
2026-10-07 21:21:07 +08:00
parent bcfb033257
commit 4934ad916a
+3 -3
View File
@@ -47,9 +47,9 @@ final class Store: ObservableObject {
try? FileManager.default.createDirectory(at: imagesDirectory, withIntermediateDirectories: true)
load()
if sections.isEmpty {
let inbox = Section(name: "Inbox")
sections = [inbox]
activeSectionID = inbox.id
let workspace = Section(name: "Workspace")
sections = [workspace]
activeSectionID = workspace.id
save()
}
if activeSectionID == nil || !sections.contains(where: { $0.id == activeSectionID }) {