Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2022-12-11 11:58:09 +08:00
commit 872b341d11
11 changed files with 38 additions and 26 deletions

View file

@ -15,7 +15,7 @@ import {openByMobile} from "../util/compatibility";
export const afterExport = (exportPath: string, msgId: string) => {
/// #if !BROWSER
showMessage(`${window.siyuan.languages.exported}${escapeHtml(exportPath)}
showMessage(`${window.siyuan.languages.exported} ${escapeHtml(exportPath)}
<div class="fn__space"></div>
<button class="b3-button b3-button--white">${window.siyuan.languages.showInFolder}</button>`, 6000, "info", msgId);
document.querySelector(`#message [data-id="${msgId}"] button`).addEventListener("click", () => {

View file

@ -383,6 +383,7 @@ const initWindow = () => {
id: ipcData.rootId,
pdf: true,
removeAssets: ipcData.removeAssets,
merge: ipcData.mergeSubdocs,
savePath: result.filePaths[0]
}, () => {
const pdfFilePath = path.join(result.filePaths[0], replaceLocalPath(ipcData.rootTitle) + ".pdf");