From f8e102d2756a56efb6b9d92e578aedc3b7d63084 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Wed, 20 May 2026 12:48:40 +0800
Subject: [PATCH] checkpoint: archive current 7.5.1 before performance optimization

---
 Apptag/AppDefaults.swift |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/Apptag/AppDefaults.swift b/Apptag/AppDefaults.swift
index 973798e..313edc2 100644
--- a/Apptag/AppDefaults.swift
+++ b/Apptag/AppDefaults.swift
@@ -2,7 +2,7 @@
 
 enum AppDefaults {
     static let schemaVersionKey = "initialDefaultsSchemaVersion"
-    static let currentSchemaVersion = 1
+    static let currentSchemaVersion = 3
 
     static let tagFontSize: Double = 22
     static let iconSize: Double = 80
@@ -22,12 +22,30 @@
             "hideAppNames": hideAppNames,
             "showDockIcon": showDockIcon,
             "launchAtLogin": launchAtLogin,
-            "showUncommonAppBubbles": showUncommonAppBubbles
+            "showUncommonAppBubbles": showUncommonAppBubbles,
+            LauncherHotkeyRegistrationStore.mainStateKey: LauncherHotkeyRegistrationState.active.rawValue,
+            LauncherHotkeyRegistrationStore.quickSearchStateKey: LauncherHotkeyRegistrationState.active.rawValue
         ])
+        removeShortcutCustomizationDefaults()
     }
 
     static func hasStoredValue(for key: String) -> Bool {
         let domain = Bundle.main.bundleIdentifier ?? "com.apptag.launcher"
         return UserDefaults.standard.persistentDomain(forName: domain)?[key] != nil
     }
+
+    private static func removeShortcutCustomizationDefaults() {
+        let defaults = UserDefaults.standard
+        [
+            "mainHotkey",
+            "quickSearchHotkey",
+            "mainHotkeyPending",
+            "quickSearchHotkeyPending",
+            "mainHotkeyStatus",
+            "quickSearchHotkeyStatus",
+            "mainHotkeyConflictMessage",
+            "quickSearchHotkeyConflictMessage"
+        ].forEach { defaults.removeObject(forKey: $0) }
+        defaults.set(currentSchemaVersion, forKey: schemaVersionKey)
+    }
 }

--
Gitblit v1.9.3