mirror of
https://github.com/fanchenio/DawnLauncher.git
synced 2025-09-14 13:56:46 +08:00
optimize the delay issue of clicking the desktop icon to display the main interface.
This commit is contained in:
parent
90fdc9b8ac
commit
af25b93004
@ -55,6 +55,12 @@ if (!app.requestSingleInstanceLock()) {
|
|||||||
// process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'
|
// process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'
|
||||||
app.whenReady().then(() => {
|
app.whenReady().then(() => {
|
||||||
try {
|
try {
|
||||||
|
// 禁止多开
|
||||||
|
const instanceLock = app.requestSingleInstanceLock();
|
||||||
|
if (!instanceLock) {
|
||||||
|
app.quit();
|
||||||
|
return;
|
||||||
|
}
|
||||||
// addon
|
// addon
|
||||||
global.addon = require("../../native/addon.node");
|
global.addon = require("../../native/addon.node");
|
||||||
// 初始化数据
|
// 初始化数据
|
||||||
@ -78,12 +84,6 @@ app.whenReady().then(() => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 禁止多开
|
|
||||||
const instanceLock = app.requestSingleInstanceLock();
|
|
||||||
if (!instanceLock) {
|
|
||||||
app.quit();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// 初始化数据
|
// 初始化数据
|
||||||
classificationDataInit();
|
classificationDataInit();
|
||||||
itemDataInit();
|
itemDataInit();
|
||||||
|
Loading…
Reference in New Issue
Block a user