From 921e8f29850af5a5c618b2574b1e0349c5157a37 Mon Sep 17 00:00:00 2001 From: gelaechter <30231932+gelaechter@users.noreply.github.com> Date: Mon, 20 Dec 2021 23:52:59 +0100 Subject: [PATCH] add icpMain function for reloading --- src/main.dev.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.dev.js b/src/main.dev.js index fb66ea1..7e95d43 100644 --- a/src/main.dev.js +++ b/src/main.dev.js @@ -578,3 +578,8 @@ app.on('activate', () => { // dock icon is clicked and there are no other windows open. if (mainWindow === null) createWindow(); }); + +ipcMain.on('reload', () => { + app.quit(); + createWindow(); +});