mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Make ArmCord not cpu bomb on splash
This commit is contained in:
parent
c54a47f065
commit
8e16371521
2 changed files with 2 additions and 4 deletions
|
@ -63,9 +63,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (check() == false) {
|
while (check() === false) await new Promise((r) => setTimeout(r, 10));
|
||||||
console.log("Installing");
|
|
||||||
}
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.armcord.splashEnd();
|
window.armcord.splashEnd();
|
||||||
switch (window.armcord.channel) {
|
switch (window.armcord.channel) {
|
||||||
|
|
|
@ -231,7 +231,7 @@ async function doAfterDefiningTheWindow() {
|
||||||
tray.setImage(trayPath);
|
tray.setImage(trayPath);
|
||||||
} else if ((await getConfig("skipSplash")) == true) {
|
} else if ((await getConfig("skipSplash")) == true) {
|
||||||
while (modInstallState == "installing") {
|
while (modInstallState == "installing") {
|
||||||
sleep(1000);
|
await sleep(1000);
|
||||||
}
|
}
|
||||||
mainWindow.loadURL("data:text/html,%3Ch1%3ELoading%21%3C%2Fh1%3E");
|
mainWindow.loadURL("data:text/html,%3Ch1%3ELoading%21%3C%2Fh1%3E");
|
||||||
mainWindow.webContents.executeJavaScript(`
|
mainWindow.webContents.executeJavaScript(`
|
||||||
|
|
Loading…
Reference in a new issue