Skip to content

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

fix: 统一防休眠状态文案

Bob6cca4308c8d4
diff --git a/CodexBar/Views/Settings/AppSettingsView.swift b/CodexBar/Views/Settings/AppSettingsView.swift
index 25bba0d..ee73c96 100644
--- a/CodexBar/Views/Settings/AppSettingsView.swift
+++ b/CodexBar/Views/Settings/AppSettingsView.swift
@@ -466,7 +466,7 @@ private extension AppSettingsView {
return KeepAliveCaption(message: "需要启用 CodexBar Hook")
}
guard keepAliveController.isEnabled else {
- return KeepAliveCaption(message: "当有 Codex 任务运行时禁止系统休眠, 任务结束后自动恢复")
+ return KeepAliveCaption(message: "当有 Codex 任务运行时阻止系统休眠, 任务结束后自动恢复")
}
switch keepAliveController.helperStatus {
@@ -480,14 +480,14 @@ private extension AppSettingsView {
case .enabled:
if keepAliveController.hasReachedMaximumDuration {
let action = keepAliveController.isPreventingSleep
- ? "正在恢复系统休眠"
+ ? "正恢复系统休眠"
: "已允许系统休眠"
return KeepAliveCaption(
- message: "已达到禁用休眠上限 (\(keepAliveController.maximumDuration.title)); \(action)"
+ message: "已达到阻止休眠上限 (\(keepAliveController.maximumDuration.title)); \(action)"
)
}
if keepAliveController.isPreventingSleep {
- return KeepAliveCaption(message: "当前禁止系统休眠")
+ return KeepAliveCaption(message: "当前阻止系统休眠")
}
return KeepAliveCaption(message: "当前允许系统休眠")
}