From 8fec0d26e8637a1c96dbcac841417fdd176d480a Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sun, 07 Jun 2026 01:28:37 +0800
Subject: [PATCH] docs: add App Store Connect filling guide

---
 Apptag/ApptagApp.swift |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/Apptag/ApptagApp.swift b/Apptag/ApptagApp.swift
index a70b9e2..b26b6f7 100644
--- a/Apptag/ApptagApp.swift
+++ b/Apptag/ApptagApp.swift
@@ -210,6 +210,14 @@
         setupLaunchAtLogin()
         suppressReopenUntil = Date().addingTimeInterval(1.0)
         configureApplicationMenuWhenAvailable(retries: 200)
+        warmAppIndexInBackground()
+    }
+
+    /// Pre-scan application folders so the first App Grid open can hydrate from cache quickly.
+    private func warmAppIndexInBackground() {
+        DispatchQueue.global(qos: .utility).async {
+            _ = AppIndexer.scan(useCache: true)
+        }
     }
 
     func applicationDidBecomeActive(_ notification: Notification) {

--
Gitblit v1.9.3