Fix multiple update messages when reloading app
This commit is contained in:
parent
0f77deed9a
commit
1b216f2aa8
7
main.js
7
main.js
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user