Skip to content

fix: 单行模式下禁用任务栏歌词翻译选项 - #253

Open
SuzakuinAyaka wants to merge 2 commits into
SPlayer-Dev:devfrom
SuzakuinAyaka:feat/taskbar-lyric-translation-visibility
Open

SuzakuinAyaka wants to merge 2 commits into
SPlayer-Dev:devfrom
SuzakuinAyaka:feat/taskbar-lyric-translation-visibility

Conversation

@SuzakuinAyaka

@SuzakuinAyaka SuzakuinAyaka commented Sep 8, 2026 •

Copy link
Copy Markdown

改动类型

  • 新功能(feat)
  • 缺陷修复(fix)
  • 重构 / 优化(不改变对外行为)
  • 文档(docs)
  • 其他(请在「改动说明」中注明)

是否包含破坏性变更

  • 是(请在「改动说明」中详细描述)
  • 否

改动说明

「设置 → 外部歌词 → 任务栏歌词」中的“显示翻译”仅在双行模式下有意义,但关闭“双行显示”后仍可操作,容易让用户误解。

将“显示翻译”作为“双行显示”的子设置项,复用现有 children 和 disabled() 机制:

  • 关闭“双行显示”时,翻译设置整行变灰,开关不可操作;
  • 开启“双行显示”时,恢复可操作;
  • 保留原有 showTranslation 配置值,不因禁用而重置。

仅修改 src/settings/categories/externalLyric.ts,不涉及歌词渲染逻辑、store、类型、i18n 或持久化配置结构。

已自审由AI生成的代码。

关联 Issue

暂无

测试情况

  • pnpm format
  • pnpm typecheck
  • pnpm lint
  • git diff --check
  • Windows 手动验证:双行关闭时整行变灰,鼠标和键盘均无法切换翻译开关
  • Windows 手动验证:双行重新开启后恢复可操作,翻译原值为开启或关闭时均能保留
  • Windows 手动验证:重启应用后原翻译配置值仍保留

截图 / 录屏

开启双行显示
image
image

关闭双行显示
image
image

自查清单

  • 本 PR 只包含一个主要功能 / 修复,没有夹带无关改动
  • 已在本地完整测试通过;AI 生成的代码同样自行测试并审阅过,未做未经验证的提交
  • 已运行 pnpm format,并确认 pnpm typecheck、pnpm lint 通过
  • 改动涉及原生模块时已 pnpm build:native 验证;未手写 native/*/index.d.ts
  • 已向 dev 分支提交

@SuzakuinAyaka SuzakuinAyaka changed the title fix: 根据双行显示状态隐藏任务栏歌词翻译选项 fix: 单行模式下禁用任务栏歌词翻译选项 Sep 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant