mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -666,6 +666,10 @@ const initAbout = () => {
|
||||
});
|
||||
btnsElement[1].addEventListener("click", () => {
|
||||
const openPath = openWorkspaceDialog.element.querySelector("select").value;
|
||||
if (openPath === window.siyuan.config.system.workspaceDir) {
|
||||
openWorkspaceDialog.destroy();
|
||||
return;
|
||||
}
|
||||
confirmDialog(window.siyuan.languages.confirm, `${pathPosix().basename(window.siyuan.config.system.workspaceDir)} -> ${pathPosix().basename(openPath)}?`, () => {
|
||||
fetchPost("/api/system/setWorkspaceDir", {
|
||||
path: openPath
|
||||
|
||||
Reference in New Issue
Block a user