🎨 Improve error window
This commit is contained in:
parent
16bd24f22d
commit
5dea880b99
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue