checkpoint: v3.0.4 — 每次进入编辑模式强制刷新 tagColors+draggedTagNames 从 DB,确保新建 tag 可见
1 files modified
8 ■■■■ changed files
Apptag/ContentView.swift 8 ●●●● patch | view | raw | blame | history
Apptag/ContentView.swift
@@ -272,10 +272,10 @@
        if phase != .none {
            NotificationCenter.default.post(name: .apptagEditModeChanged, object: nil, userInfo: ["active": true])
            NSApp.activate(ignoringOtherApps: true)
            // Sync drag order from database when entering edit mode
            if draggedTagNames.isEmpty {
                draggedTagNames = TagEditor.orderedTagNames()
            }
            // Always sync tag list from database when entering edit mode
            let store = TagDatabase.load()
            tagColors = store.tags.mapValues { $0.color }
            draggedTagNames = TagEditor.orderedTagNames()
        }
        editPhase = phase
        if phase == .none {