From 28be00ea53666fd5500a702a3c187c0e27dd90ad Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 27 Jun 2026 16:26:30 +0800
Subject: [PATCH] Simplify SmartStart default categories

---
 src/Apptag/SmartCategorization/SmartStartService.swift |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Apptag/SmartCategorization/SmartStartService.swift b/src/Apptag/SmartCategorization/SmartStartService.swift
index 75a9474..c1451d4 100644
--- a/src/Apptag/SmartCategorization/SmartStartService.swift
+++ b/src/Apptag/SmartCategorization/SmartStartService.swift
@@ -358,6 +358,7 @@
             store.tags = [:]
             store.appTags = [:]
             store.tagOrder = []
+            store.containerAppOrder = [:]
             store.disabledSystemCategoryIDs = []
         }
 
@@ -528,6 +529,7 @@
             let tagIDs = entry.defaultTag
                 .compactMap { SmartCategoryID(rawValue: $0) }
                 .filter { $0 != .other }
+                .map(\.smartStartDefaultCategoryID)
             guard !tagIDs.isEmpty else { return nil }
 
             return SmartStartCatalogEntry(

--
Gitblit v1.9.3