From 9ab01e81a56761859344ba43f407d0762107a0dc Mon Sep 17 00:00:00 2001
From: Ariver <ar@MacBook-Air.local>
Date: Wed, 06 May 2026 18:44:09 +0800
Subject: [PATCH] checkpoint: v3.1.3 — 清除 Re-index 功能,已脱离 Finder 无意义

---
 Apptag/ApptagApp.swift           |   15 ---------------
 Apptag/Localization/en.json      |    5 +----
 Apptag/Localization/zh-Hant.json |    5 +----
 Apptag/Localization/ja.json      |    5 +----
 Apptag/Info.plist                |    2 +-
 Apptag/Localization/fr.json      |    3 ---
 CHANGELOG.md                     |    4 ++++
 Apptag/Localization/ko.json      |    3 ---
 Apptag/Localization/zh-Hans.json |    5 +----
 Apptag/ContentView.swift         |    4 ----
 Apptag/Localization/it.json      |    3 ---
 Apptag/Localization/es.json      |    3 ---
 Apptag/Localization/ru.json      |    3 ---
 13 files changed, 9 insertions(+), 51 deletions(-)

diff --git a/Apptag/ApptagApp.swift b/Apptag/ApptagApp.swift
index a55758d..4e1ad64 100644
--- a/Apptag/ApptagApp.swift
+++ b/Apptag/ApptagApp.swift
@@ -536,21 +536,6 @@
             // Tab 3: Data
             Form {
                 Section {
-                    HStack {
-                        Button("Re-index Now") {
-                            NotificationCenter.default.post(name: .apptagReindex, object: nil)
-                        }
-                        .buttonStyle(.borderedProminent)
-
-                        Text("Re-scan all app directories and refresh the tag database.")
-                            .font(.caption)
-                            .foregroundStyle(.secondary)
-                    }
-                } header: {
-                    Text("Index Management")
-                }
-
-                Section {
                     HStack(spacing: 12) {
                         Button("Export Tags…") { exportTags() }
                             .buttonStyle(.bordered)
diff --git a/Apptag/ContentView.swift b/Apptag/ContentView.swift
index def0d2b..e28b132 100644
--- a/Apptag/ContentView.swift
+++ b/Apptag/ContentView.swift
@@ -4,7 +4,6 @@
 // MARK: - Notification for manual re-index
 
 extension Notification.Name {
-    static let apptagReindex = Notification.Name("ApptagReindex")
     static let apptagEditModeChanged = Notification.Name("ApptagEditModeChanged")
 }
 
@@ -253,9 +252,6 @@
             refreshApps()
         }
         .onReceive(NotificationCenter.default.publisher(for: NSApplication.didBecomeActiveNotification)) { _ in
-            refreshApps()
-        }
-        .onReceive(NotificationCenter.default.publisher(for: .apptagReindex)) { _ in
             refreshApps()
         }
         .onChange(of: editPhase) { _, newPhase in
diff --git a/Apptag/Info.plist b/Apptag/Info.plist
index e54d0ae..2956088 100644
--- a/Apptag/Info.plist
+++ b/Apptag/Info.plist
@@ -19,7 +19,7 @@
 	<key>CFBundlePackageType</key>
 	<string>APPL</string>
 	<key>CFBundleShortVersionString</key>
-	<string>3.1.2</string>
+	<string>3.1.3</string>
 	<key>CFBundleVersion</key>
 	<string>1</string>
 	<key>LSMinimumSystemVersion</key>
diff --git a/Apptag/Localization/en.json b/Apptag/Localization/en.json
index 93d5db5..38b983d 100644
--- a/Apptag/Localization/en.json
+++ b/Apptag/Localization/en.json
@@ -22,9 +22,6 @@
   "settings.tagFontDesc": "Adjust the size of group-name labels in the overlay.",
   "settings.iconSize": "Icon size:",
   "settings.iconSizeDesc": "Icon display size. Grid columns adjust automatically.",
-  "settings.reindex": "Re-index Now",
-  "settings.reindexDesc": "Re-scan all app directories and refresh the tag database.",
-  "settings.indexMgmt": "Index Management",
   "settings.backup": "Backup & Restore",
   "settings.export": "Export Tags…",
   "settings.import": "Import Tags…",
@@ -43,4 +40,4 @@
   "tag.cancel": "Cancel",
   "tag.add": "Add",
   "tag.newName": "New tag name"
-}
+}
\ No newline at end of file
diff --git a/Apptag/Localization/es.json b/Apptag/Localization/es.json
index ee82c08..32b3e02 100644
--- a/Apptag/Localization/es.json
+++ b/Apptag/Localization/es.json
@@ -22,9 +22,6 @@
   "settings.tagFontDesc": "Ajusta el tamaño de las etiquetas de grupo.",
   "settings.iconSize": "Tamaño de iconos:",
   "settings.iconSizeDesc": "Tamaño de visualización de iconos.",
-  "settings.reindex": "Reindexar",
-  "settings.reindexDesc": "Volver a escanear todos los directorios de apps.",
-  "settings.indexMgmt": "Gestión de índice",
   "settings.backup": "Copia de seguridad",
   "settings.export": "Exportar etiquetas…",
   "settings.import": "Importar etiquetas…",
diff --git a/Apptag/Localization/fr.json b/Apptag/Localization/fr.json
index 0fc1384..7ba2e74 100644
--- a/Apptag/Localization/fr.json
+++ b/Apptag/Localization/fr.json
@@ -22,9 +22,6 @@
   "settings.tagFontDesc": "Ajuste la taille des noms de groupe dans l'overlay.",
   "settings.iconSize": "Taille des icônes:",
   "settings.iconSizeDesc": "Taille d'affichage des icônes.",
-  "settings.reindex": "Réindexer",
-  "settings.reindexDesc": "Réanalyser tous les répertoires d'applications.",
-  "settings.indexMgmt": "Gestion de l'index",
   "settings.backup": "Sauvegarde et restauration",
   "settings.export": "Exporter les étiquettes…",
   "settings.import": "Importer les étiquettes…",
diff --git a/Apptag/Localization/it.json b/Apptag/Localization/it.json
index 4002aba..14b2362 100644
--- a/Apptag/Localization/it.json
+++ b/Apptag/Localization/it.json
@@ -22,9 +22,6 @@
   "settings.tagFontDesc": "Regola la dimensione delle etichette dei gruppi.",
   "settings.iconSize": "Dimensione icone:",
   "settings.iconSizeDesc": "Dimensione di visualizzazione delle icone.",
-  "settings.reindex": "Reindicizza",
-  "settings.reindexDesc": "Ripeti la scansione di tutte le directory delle app.",
-  "settings.indexMgmt": "Gestione indice",
   "settings.backup": "Backup e ripristino",
   "settings.export": "Esporta tag…",
   "settings.import": "Importa tag…",
diff --git a/Apptag/Localization/ja.json b/Apptag/Localization/ja.json
index fe04480..8887a9f 100644
--- a/Apptag/Localization/ja.json
+++ b/Apptag/Localization/ja.json
@@ -22,9 +22,6 @@
   "settings.tagFontDesc": "オーバーレイ内のグループ名ラベルのサイズを調整します。",
   "settings.iconSize": "アイコンサイズ:",
   "settings.iconSizeDesc": "アイコンの表示サイズ。グリッド列は自動調整されます。",
-  "settings.reindex": "再インデックス",
-  "settings.reindexDesc": "すべてのAppディレクトリを再スキャンし、タグデータベースを更新します。",
-  "settings.indexMgmt": "インデックス管理",
   "settings.backup": "バックアップと復元",
   "settings.export": "タグをエクスポート…",
   "settings.import": "タグをインポート…",
@@ -43,4 +40,4 @@
   "tag.cancel": "キャンセル",
   "tag.add": "追加",
   "tag.newName": "新規タグ名"
-}
+}
\ No newline at end of file
diff --git a/Apptag/Localization/ko.json b/Apptag/Localization/ko.json
index cee9fdd..84e5817 100644
--- a/Apptag/Localization/ko.json
+++ b/Apptag/Localization/ko.json
@@ -22,9 +22,6 @@
   "settings.tagFontDesc": "오버레이에서 그룹 이름 레이블의 크기를 조정합니다.",
   "settings.iconSize": "아이콘 크기:",
   "settings.iconSizeDesc": "아이콘 표시 크기입니다.",
-  "settings.reindex": "재인덱싱",
-  "settings.reindexDesc": "모든 앱 디렉토리를 다시 스캔하고 태그 데이터베이스를 새로 고칩니다.",
-  "settings.indexMgmt": "인덱스 관리",
   "settings.backup": "백업 및 복원",
   "settings.export": "태그 내보내기…",
   "settings.import": "태그 가져오기…",
diff --git a/Apptag/Localization/ru.json b/Apptag/Localization/ru.json
index fac1abc..f69e3e9 100644
--- a/Apptag/Localization/ru.json
+++ b/Apptag/Localization/ru.json
@@ -22,9 +22,6 @@
   "settings.tagFontDesc": "Размер названий групп в оверлее.",
   "settings.iconSize": "Размер иконок:",
   "settings.iconSizeDesc": "Размер отображения иконок.",
-  "settings.reindex": "Переиндексировать",
-  "settings.reindexDesc": "Пересканировать все директории приложений.",
-  "settings.indexMgmt": "Управление индексом",
   "settings.backup": "Резервное копирование",
   "settings.export": "Экспорт тегов…",
   "settings.import": "Импорт тегов…",
diff --git a/Apptag/Localization/zh-Hans.json b/Apptag/Localization/zh-Hans.json
index 4ccead6..2b9ffef 100644
--- a/Apptag/Localization/zh-Hans.json
+++ b/Apptag/Localization/zh-Hans.json
@@ -22,9 +22,6 @@
   "settings.tagFontDesc": "调整浮层中分组名称标签的大小。",
   "settings.iconSize": "图标大小:",
   "settings.iconSizeDesc": "图标显示尺寸。网格列会自动调整。",
-  "settings.reindex": "重新索引",
-  "settings.reindexDesc": "重新扫描所有 App 目录并刷新标签数据库。",
-  "settings.indexMgmt": "索引管理",
   "settings.backup": "备份与恢复",
   "settings.export": "导出标签…",
   "settings.import": "导入标签…",
@@ -43,4 +40,4 @@
   "tag.cancel": "取消",
   "tag.add": "添加",
   "tag.newName": "新标签名称"
-}
+}
\ No newline at end of file
diff --git a/Apptag/Localization/zh-Hant.json b/Apptag/Localization/zh-Hant.json
index 8f9cd8c..aac18be 100644
--- a/Apptag/Localization/zh-Hant.json
+++ b/Apptag/Localization/zh-Hant.json
@@ -22,9 +22,6 @@
   "settings.tagFontDesc": "調整浮層中分組名稱標籤的大小。",
   "settings.iconSize": "圖示大小:",
   "settings.iconSizeDesc": "圖示顯示尺寸。網格列會自動調整。",
-  "settings.reindex": "重新索引",
-  "settings.reindexDesc": "重新掃描所有 App 目錄並重新整理標籤資料庫。",
-  "settings.indexMgmt": "索引管理",
   "settings.backup": "備份與還原",
   "settings.export": "匯出標籤…",
   "settings.import": "匯入標籤…",
@@ -43,4 +40,4 @@
   "tag.cancel": "取消",
   "tag.add": "新增",
   "tag.newName": "新標籤名稱"
-}
+}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 679971c..fa417d9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,10 @@
 # Apptag Changelog
 
+## [3.1.3] — 2026-05-06
+- 清除 Re-index 功能:已脱离 Finder,每次 overlay 打开自动扫描新 app,无需手动触发
+
 ## [3.1.2] — 2026-05-06
+
 - 修复 Show in Dock 不生效:监听 UserDefaults 变化动态切换 activationPolicy
 - 新增 Launch at login(开机启动)开关,默认勾选,首次安装自动启用
 

--
Gitblit v1.9.3