Skip to content

Commit 85127be

Browse files
author
yaofeng
committed
config
1 parent 86aae5e commit 85127be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ElectronNET.Host/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ function activeCountDowInterval(manifestJsonFile) {
141141
clearInterval(countDownInterval);
142142

143143
dialog.showMessageBox(loadingWindow, {
144-
type: 'error',
145-
buttons: ["前往安装"],
146-
title: '文件缺失提示',
147-
message: '计算机缺少组件无法启动该程序,点击前往安装组件后重试',
144+
type: manifestJsonFile.timeout.messageBox.type || 'error',
145+
buttons: manifestJsonFile.timeout.messageBox.buttons || ["前往安装"],
146+
title: manifestJsonFile.timeout.messageBox.title || '文件缺失提示',
147+
message: manifestJsonFile.timeout.messageBox.message || '计算机缺少组件无法启动该程序,点击前往安装组件后重试',
148148
}, (res, isChecked) => {
149149
if (manifestJsonFile.timeout.help)
150150
shell.openExternal(manifestJsonFile.timeout.help)

0 commit comments

Comments
 (0)