From aaf08454b50e1a9c0b68989171bfd188d1762efb Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 19 Mar 2023 11:27:16 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=BC=82=E5=B8=B8=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/electron/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/electron/main.js b/app/electron/main.js index 736ca571a..9adbab55b 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -67,7 +67,7 @@ const exitApp = (type, id, errorWindowId) => { } } else { const currentURL = new URL(item.browserWindow.getURL()); - if (currentURL.port === id || currentURL.port === id.toString()) { + if (currentURL.port.toString() === id.toString()) { mainWindow = item.browserWindow; if (workspaces.length > 1) { item.browserWindow.destroy(); @@ -477,7 +477,7 @@ const initKernel = (workspace, port, lang) => { errorWindowId = showErrorWindow("⚠️ 工作空间已被锁定 The workspace is locked", "
该工作空间正在被使用。
The workspace is in use.
"); break; case 25: - showErrorWindow("⚠️ 创建工作空间目录失败 Failed to create workspace directory", "
创建工作空间目录失败。
Failed to create workspace directory.
"); + errorWindowId = showErrorWindow("⚠️ 创建工作空间目录失败 Failed to create workspace directory", "
创建工作空间目录失败。
Failed to create workspace directory.
"); break; case 26: errorWindowId = showErrorWindow("⚠️ 文件系统读写错误 File system access error", "
请检查文件系统权限,并确保没有其他程序正在读写文件;
请勿使用第三方同步盘进行数据同步,否则数据会被损坏(iCloud/OneDrive/Dropbox/Google Drive/坚果云/百度网盘/腾讯微云等)
Please check file system permissions and make sure no other programs are reading or writing to the file;
Do not use a third-party sync disk for data sync, otherwise the data will be damaged (OneDrive/Dropbox/Google Drive/Nutstore/Baidu Netdisk/Tencent Weiyun, etc.)
");