Repository navigation
统一配置面板:纳入翻译行为与开机自启设置(依赖 #1) - #2
Merged
Merged
Conversation
qhmiao
marked this pull request as ready for review
October 14, 2026 06:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
当前设置面板只覆盖阅读选项,自动划词、取词方式、目标语言、选区上限、排除应用和开机自启仍需使用托盘、配置文件或脚本。本 PR 将这些原有用户选项统一到“设置…”面板,按“翻译、浮层、启动”分组,保存后应用,取消不改变配置或启动项。
依赖与范围
依赖尚未合并的 #1。 本分支直接基于 #1 的已验收头提交
2b4ae3e,没有重新生成或 cherry-pick 上一版提交。本轮新增一个独立提交;只修改统一面板、状态同步、自启实现、必要测试和说明。由于 #1 尚未进入
main,本 PR 对main的整体差异暂时也包含 #1 的基础改动。建议先评审/合并 #1,再检查本轮增量;#1 以保留提交历史的方式合并后,比较会自动收敛。若 #1 使用 squash/rebase 合并,需要随后整理本分支基线。本轮增量可单独从父提交2b4ae3e比较。本轮行为
Enabled、ClipboardFallback、Target、MaxSelectionLength、ExcludedApps和已有英文比例选项。托盘切换立即生效并同步已打开的面板,保存面板不会覆盖刚切换的状态;托盘开关保存失败会恢复勾选并提示。Diagnostics,未编辑的自定义目标、长度和排除数组逐值保留;诊断、缓存不作为普通面板选项暴露。恢复配置默认值只改变输入,不改变自启选择或隐藏诊断开关。LightTranslate.lnk的真实目标及 Windows 保存的常见启动审批状态,不用 JSON 布尔值猜测。仅用户改变自启选择并保存时创建/移除当前目录的快捷方式,写入后重新读取验证;打开、勾选、重置或取消均不写入。验证