Skip to content

CodexBar 是一个 macOS 菜单栏应用,用于查看本机 Codex 账号状态、额度、Token 用量、详细统计信息

fix: 恢复菜单栏右键菜单图标显示

Bobef8999c9129e
diff --git a/CodexBar/Controllers/StatusItemController.swift b/CodexBar/Controllers/StatusItemController.swift
index 475bdab..fe3017a 100644
--- a/CodexBar/Controllers/StatusItemController.swift
+++ b/CodexBar/Controllers/StatusItemController.swift
@@ -818,6 +818,9 @@ final class StatusItemController: NSObject, NSMenuDelegate {
keyEquivalent: keyEquivalent
)
item.image = NSImage(systemSymbolName: symbolName, accessibilityDescription: nil)
+ if #available(macOS 27.0, *) {
+ item.preferredImageVisibility = .visible
+ }
item.target = self
return item
}