Ariver
2026-06-08 4f5d7c13209555a114761f5027299f3ba1b42217
Apptag/ApptagApp.swift
@@ -211,6 +211,7 @@
        suppressReopenUntil = Date().addingTimeInterval(1.0)
        configureApplicationMenuWhenAvailable(retries: 200)
        warmAppIndexInBackground()
        relocalizeDefaultAppNotesForCurrentLanguageAsync()
    }
    /// Pre-scan application folders so the first App Grid open can hydrate from cache quickly.
@@ -458,6 +459,19 @@
        ) { [weak self] _ in
            self?.setupMenuBar()
            self?.configureApplicationMenuWhenAvailable()
            self?.relocalizeDefaultAppNotesForCurrentLanguageAsync()
        }
    }
    private func relocalizeDefaultAppNotesForCurrentLanguageAsync() {
        DispatchQueue.global(qos: .utility).async {
            let apps = AppIndexer.scan(useCache: true)
            let appleChanged = AppleDefaultAppCatalog.relocalizeDefaultNotesForCurrentLanguage(apps: apps)
            let smartStartChanged = SmartStartService.relocalizeDefaultNotesForCurrentLanguage(apps: apps)
            guard appleChanged || smartStartChanged else { return }
            DispatchQueue.main.async {
                NotificationCenter.default.post(name: .tagLauncherDataDidChange, object: nil)
            }
        }
    }