Repository navigation
feat(传输中心): 支持打开已完成下载的所在位置 - #446
Open
Ezreal-byte wants to merge 1 commit into
Open
Ezreal-byte wants to merge 1 commit into
Ezreal-byte wants to merge 1 commit into
Conversation
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 在传输中心的已完成下载记录中增加“打开所在位置”,并保证连接关闭后保留的历史记录仍可使用。
Closes #427
改动
org.freedesktop.FileManager1.ShowItems定位具体文件,再依次回退到xdg-open和gio。Wake线程回到 UI,避免文件管理器启动或 D-Bus 调用阻塞界面。验证
go test -tags dev ./internal/workbench -run 'Test(TransferCenter|RevealPath)' -count=1go test -tags dev ./internal/i18n -count=1go vet -tags dev ./internal/workbench ./internal/i18n ./cmd/mottygofmt、git diff --check通过全量
internal/workbench测试在当前upstream/main基线仍复现 3 个无关失败:标签弹层滚动裁切、快捷键焦点、工作区主机筛选;本次相关测试均通过。依赖与兼容性
upstream/main;Viva 仅同步到最新上游以匹配现有 API,没有 Viva 源码改动。