feat(download): 导出目录三态逻辑(自动下载=出图即落盘/目录决定是否弹框/不覆盖同名)+ 取色器按钮修复(v3.25.20)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m1s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m1s
This commit is contained in:
1 parent
cad17e0aef
commit
a742fea2db
18 files changed
+183
-37
No files matched your search
@@ -22,6 +22,9 @@
|
||||
pickDownloadDir() { return state.impl ? state.impl.pickDownloadDir() : Promise.resolve('') },
|
||||
getSilentSave() { return !!(state.impl && state.impl.getSilentSave()) },
|
||||
setSilentSave(on) { if (state.impl) state.impl.setSilentSave(on) },
|
||||
// 自动下载(v3.25.20):与「点下载是否弹框」解耦,只决定出图后是否自动落盘
|
||||
getAutoDownload() { return !!(state.impl && state.impl.getAutoDownload && state.impl.getAutoDownload()) },
|
||||
setAutoDownload(on) { if (state.impl && state.impl.setAutoDownload) state.impl.setAutoDownload(on) },
|
||||
openDataDir() { return state.impl ? state.impl.openDataDir() : Promise.reject(new Error('仅桌面端可用')) },
|
||||
// 原生剪贴板图片(v3.26):WKWebView 里 paste 事件拿不到 Finder 复制的图片,
|
||||
// navigator.clipboard.write 也常不可用,统一走 Rust 侧 arboard。
|
||||
|
||||
Reference in new issue
Block a user