Skip to content

Commit b0e5f32

Browse files
committed
fix: align animation mergeIcons check with shouldMergeIcons property
updateBlinkingState() computed mergeIcons independently using the availability-filtered list, diverging from shouldMergeIcons which now uses the display list. Reuse the property to keep a single source of truth.
1 parent 7af0ea4 commit b0e5f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CodexBar/StatusItemController+Animation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extension StatusItemController {
2727
let enabledProviders = self.store.enabledProviders()
2828
let anyEnabled = !enabledProviders.isEmpty || self.store.debugForceAnimation
2929
let anyVisible = UsageProvider.allCases.contains { self.isVisible($0) }
30-
let mergeIcons = self.settings.mergeIcons && enabledProviders.count > 1
30+
let mergeIcons = self.shouldMergeIcons
3131
let shouldBlink = mergeIcons ? anyEnabled : anyVisible
3232
if blinkingEnabled, shouldBlink {
3333
if self.blinkTask == nil {

0 commit comments

Comments
 (0)