aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts
index 09e411e13..13265cc07 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -794,3 +794,15 @@ app.on(
794 callback(checkIfCertIsPresent(certificate.data)); 794 callback(checkIfCertIsPresent(certificate.data));
795 }, 795 },
796); 796);
797
798ipcMain.on('relaunch-app', async (_, options) => {
799 // Ask user to confirm
800 const result = await dialog.showMessageBox(mainWindow!, options);
801
802 if (result.response === options.cancelId) {
803 return;
804 }
805
806 app.relaunch();
807 app.quit();
808});