Ariver
2026-06-11 bbd86bd724465269895ffd9468927a4a86f4a98c
src/Apptag/AppLibraryController.swift
@@ -22,6 +22,10 @@
    let summary: SmartStartSummary?
}
struct AppLibraryUncategorizedResetResult {
    let snapshot: AppLibrarySnapshot
}
enum AppLibraryController {
    static func refresh(useCache: Bool = true) -> AppLibraryRefreshResult {
        let scannedApps = AppIndexer.scan(useCache: useCache)
@@ -56,6 +60,14 @@
        )
    }
    static func resetToUncategorized() -> AppLibraryUncategorizedResetResult {
        let scannedApps = AppIndexer.scan(useCache: false)
        let store = TagDatabase.resetAppTagAssignmentsToUncategorized()
        return AppLibraryUncategorizedResetResult(
            snapshot: makeSnapshot(scannedApps: scannedApps, store: store)
        )
    }
    private static func makeSnapshot(
        scannedApps: [AppInfo],
        store: TagDatabase.Store