open dev tools on crash, when not reloading

This commit is contained in:
Jan Prochazka
2022-03-28 19:05:15 +02:00
parent 4c2f6c9b65
commit b8206a7a02
2 changed files with 8 additions and 0 deletions

View File

@@ -102,6 +102,9 @@ ipcMain.on('set-title', async (event, arg) => {
ipcMain.on('open-link', async (event, arg) => {
electron.shell.openExternal(arg);
});
ipcMain.on('open-dev-tools', () => {
mainWindow.webContents.openDevTools();
});
ipcMain.on('window-action', async (event, arg) => {
switch (arg) {
case 'minimize':