Fix multiple update messages when reloading app

This commit is contained in:
JannisX11 2022-07-30 15:08:33 +02:00
parent 0f77deed9a
commit 1b216f2aa8

View File

@ -204,8 +204,15 @@ app.on('ready', () => {
createWindow()
let app_was_loaded = false;
ipcMain.on('app-loaded', () => {
if (app_was_loaded) {
console.log('[Blockbench] App reloaded')
return;
}
app_was_loaded = true;
if (process.execPath && process.execPath.match(/electron\.\w+$/)) {
console.log('[Blockbench] App launched in development mode')