新增 macOS 恢复定位按钮,修复代理恢复失败后的重试 - #4
Merged
Merged
Conversation
调整锁定、恢复与选点操作的布局,取消恢复时待执行的定位刷新。保留未恢复的 PAC 备份,支持重试及重启后恢复,并补充回归测试和教程说明。
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.
标题:新增 macOS App 恢复定位按钮
变更说明
macOS 用户此前需要退出应用才能停止定位修改;新增恢复定位按钮,可以一键恢复定位。
实现方式
复用项目已有的
AppWLocPACManager.stop(clearState:completion:)接口,为 macOS App 增加“恢复定位”的界面入口,调用现有逻辑恢复原 PAC 设置、停止本地代理并清除锁定坐标。在此基础上补充:
已执行验证
环境:Apple Silicon Mac、macOS 26.4.1、Xcode 26.6。
验收方式
自动回归命令: