whoops
This commit is contained in:
parent
bd18804ccd
commit
54f13f7da5
1 changed files with 6 additions and 6 deletions
|
@ -385,13 +385,13 @@ export class BrowserWindow {
|
|||
return await yt.search(u);
|
||||
});
|
||||
|
||||
ipcMain.on("close", (_event, mac) => {
|
||||
if (mac) return
|
||||
ipcMain.on("close", (_event, platformCheck) => {
|
||||
if (platformCheck && process.platform === "darwin") return
|
||||
BrowserWindow.win.close();
|
||||
});
|
||||
|
||||
ipcMain.on("maximize", (_event, mac) => {
|
||||
if (mac) return
|
||||
ipcMain.on("maximize", (_event, platformCheck) => {
|
||||
if (platformCheck && process.platform === "darwin") return
|
||||
// listen for maximize event
|
||||
if (BrowserWindow.win.isMaximized()) {
|
||||
BrowserWindow.win.unmaximize();
|
||||
|
@ -404,8 +404,8 @@ export class BrowserWindow {
|
|||
BrowserWindow.win.unmaximize();
|
||||
});
|
||||
|
||||
ipcMain.on("minimize", (_event, mac) => {
|
||||
if (mac) return
|
||||
ipcMain.on("minimize", (_event, platformCheck) => {
|
||||
if (platformCheck && process.platform === "darwin") return
|
||||
// listen for minimize event
|
||||
BrowserWindow.win.minimize();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue