🎨 Improve error window

This commit is contained in:
Daniel 2024-02-05 11:59:43 +08:00
parent 16bd24f22d
commit 5dea880b99
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -444,7 +444,7 @@ const initKernel = (workspace, port, lang) => {
const kernelName = "win32" === process.platform ? "SiYuan-Kernel.exe" : "SiYuan-Kernel";
const kernelPath = path.join(appDir, "kernel", kernelName);
if (!fs.existsSync(kernelPath)) {
showErrorWindow("⚠️ 内核文件丢失 Kernel is missing", "<div>内核可执行文件丢失,请重新安装思源,并将思源加入杀毒软件信任列表。</div><div>The kernel binary is not found, please reinstall SiYuan and add SiYuan into the trust list of your antivirus software.</div>");
showErrorWindow("⚠️ 内核程序丢失 Kernel program is missing", `<div>内核程序丢失,请重新安装思源,并将思源内核程序加入杀毒软件信任列表。</div><div>The kernel program is not found, please reinstall SiYuan and add SiYuan Kernel prgram into the trust list of your antivirus software.</div><div><i>${kernelPath}</i></div>`);
bootWindow.destroy();
resolve(false);
return;