Removed the platform check as mac no longer calls it
This commit is contained in:
parent
82fa96c329
commit
e97a2f35d4
2 changed files with 10 additions and 13 deletions
|
@ -440,13 +440,11 @@ export class BrowserWindow {
|
|||
return await search(u);
|
||||
});
|
||||
|
||||
ipcMain.on("close", (_event, platformCheck) => {
|
||||
if (platformCheck && process.platform === "darwin") return
|
||||
ipcMain.on("close", (_event) => {
|
||||
BrowserWindow.win.close();
|
||||
});
|
||||
|
||||
ipcMain.on("maximize", (_event, platformCheck) => {
|
||||
if (platformCheck && process.platform === "darwin") return
|
||||
ipcMain.on("maximize", (_event) => {
|
||||
// listen for maximize event
|
||||
if (BrowserWindow.win.isMaximized()) {
|
||||
BrowserWindow.win.unmaximize();
|
||||
|
@ -459,8 +457,7 @@ export class BrowserWindow {
|
|||
BrowserWindow.win.unmaximize();
|
||||
});
|
||||
|
||||
ipcMain.on("minimize", (_event, platformCheck) => {
|
||||
if (platformCheck && process.platform === "darwin") return
|
||||
ipcMain.on("minimize", () => {
|
||||
// listen for minimize event
|
||||
BrowserWindow.win.minimize();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue