修复: 粘贴图失效与SFTP串台回退等一批问题

粘贴图根修(Ctrl+V直读系统剪贴板,不再依赖不可靠的paste事件)/SFTP串台双刀(拨号期禁回退本机+盘符路径自动回根)/PDF导出目录设置与文案带落盘路径/性能批(连接保存下载防重/md渲染防抖+预热/hljs按需加载/审计锁外置/快捷方式解析超时/webview-watch可停)/前端62类型错清零(含keyPath蛇形字段炸弹)/目录图标字段错位修复
This commit is contained in:
lxy
2026-10-24 13:48:54 +08:00
parent 4675ae381d
commit 75a42c0b6a
48 changed files with 1072 additions and 220 deletions
+4 -4
View File
@@ -210,10 +210,10 @@ func InstallUpdateWithHash(installerPath string, autoRestart bool, expectedHash
// 自动重启
if autoRestart {
go func() {
common.Go("update-restart", func() {
time.Sleep(2 * time.Second)
restartApplication()
}()
})
}
return &InstallResult{Success: true, Message: "安装成功"}, nil
@@ -275,10 +275,10 @@ func replaceExecutableFileWindows(newFilePath, execPath string) error {
}
// 延迟删除旧文件
go func() {
common.Go("update-remove-old-exe", func() {
time.Sleep(10 * time.Second)
os.Remove(oldExecPath)
}()
})
return nil
}