diff options
| author | Fuwn <[email protected]> | 2025-09-12 02:14:30 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-12 02:14:30 -0700 |
| commit | e64905a7751ecc06495a58614738747d6c4cc9c7 (patch) | |
| tree | 8c832fc1b5a01fb3fc0e6c743c4e79a8640a24e2 /Sora/Data | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-e64905a7751ecc06495a58614738747d6c4cc9c7.tar.xz sora-testing-e64905a7751ecc06495a58614738747d6c4cc9c7.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Data')
| -rw-r--r-- | Sora/Data/CollectionPickerOption.swift | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Sora/Data/CollectionPickerOption.swift b/Sora/Data/CollectionPickerOption.swift index 751e71c..930797a 100644 --- a/Sora/Data/CollectionPickerOption.swift +++ b/Sora/Data/CollectionPickerOption.swift @@ -3,6 +3,7 @@ import Foundation enum CollectionPickerOption: Identifiable, Hashable { case all case folder(UUID) + case topLevelFolder(String) case uncategorized var id: String { @@ -13,6 +14,9 @@ enum CollectionPickerOption: Identifiable, Hashable { case .folder(let id): return id.uuidString + case .topLevelFolder(let name): + return "topLevel_\(name)" + case .uncategorized: return "uncategorized" } @@ -27,6 +31,9 @@ enum CollectionPickerOption: Identifiable, Hashable { case .folder(let id): return settings.folderName(forID: id) ?? "Unknown Folder" + case .topLevelFolder(let name): + return name + case .uncategorized: return "Uncategorised" } |