diff --git a/baklava/package.json b/baklava/package.json index ffc928f0b..2bf2106a5 100644 --- a/baklava/package.json +++ b/baklava/package.json @@ -1,6 +1,6 @@ { "name": "dogehouse", - "version": "1.0.55", + "version": "1.0.56", "description": "Taking voice conversations to the moon 🚀", "main": "./dist/electron.js", "scripts": { diff --git a/baklava/src/electron.ts b/baklava/src/electron.ts index 084161997..26ea953bf 100644 --- a/baklava/src/electron.ts +++ b/baklava/src/electron.ts @@ -176,11 +176,17 @@ function createMainWindow() { mainWindow.close(); }); ipcMain.on("@app/maximize", (event, args) => { - if (mainWindow.maximizable) { - if (mainWindow.isMaximized()) { - mainWindow.unmaximize(); - } else { - mainWindow.maximize(); + if (isMac) { + if (mainWindow.isFullScreenable()) { + mainWindow.setFullScreen(!mainWindow.isFullScreen()); + } + } else { + if (mainWindow.maximizable) { + if (mainWindow.isMaximized()) { + mainWindow.unmaximize(); + } else { + mainWindow.maximize(); + } } } });