Skip to content

fix(download): 下载设置抽屉打开时路径显示为空#653

Open
chengww5217 wants to merge 1 commit intoalgerkong:mainfrom
chengww5217:fix/download-config
Open

fix(download): 下载设置抽屉打开时路径显示为空#653
chengww5217 wants to merge 1 commit intoalgerkong:mainfrom
chengww5217:fix/download-config

Conversation

@chengww5217
Copy link
Copy Markdown

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

  • 现象:保存下载路径后,再次打开下载设置抽屉打开时路径显示为空

  • 修复:get-store-value 主进程用 ipcMain.on 同步返回,renderer 却用 invoke 读取会直接 reject,导致 initDownloadSettings 中断、已保存的下载路径等配置回读失败。改为 sendSync,与项目其它调用点保持一致。

  • 额外信息:contentLength 类型错误非本次提交引入,因无法通过 precommit 检查,故一并修复。

📝 更新日志

  • fix(download): 下载设置抽屉打开时路径显示为空
  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

get-store-value 主进程用 ipcMain.on 同步返回,renderer 却用 invoke 读取会直接
reject,导致 initDownloadSettings 中断、已保存的下载路径等配置回读失败。改为
sendSync,与项目其它调用点保持一致。

contentLength 类型错误非本次提交引入,因无法通过 precommit 检查,故一并修复。
@chengww5217 chengww5217 requested a review from algerkong as a code owner April 26, 2026 13:08
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