Fix quit functionality (#184)

This commit is contained in:
jeffvli 2023-09-27 02:37:03 -07:00
parent 3bbe696f4c
commit c464be8cea
3 changed files with 14 additions and 1 deletions

View file

@ -259,6 +259,11 @@ const createWindow = async () => {
mainWindow?.close();
});
ipcMain.on('window-quit', () => {
mainWindow?.close();
app.exit();
});
ipcMain.on('app-restart', () => {
// Fix for .AppImage
if (process.env.APPIMAGE) {