Skip to content

Commit

Permalink
added setMinimizable/Maximizable ipc handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapaezbas committed May 1, 2024
1 parent befeee2 commit b5f9524
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gui/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,8 @@ class PearGUI extends ReadyResource {
electron.ipcMain.handle('hide ', (evt, ...args) => this.hide(...args))
electron.ipcMain.handle('minimize', (evt, ...args) => this.minimize(...args))
electron.ipcMain.handle('maximize', (evt, ...args) => this.maximize(...args))
electron.ipcMain.handle('setMinimizable', (evt, ...args) => this.setMinimizable(...args))
electron.ipcMain.handle('setMaximizable', (evt, ...args) => this.setMaximizable(...args))
electron.ipcMain.handle('fullscreen ', (evt, ...args) => this.fullscreen(...args))
electron.ipcMain.handle('restore', (evt, ...args) => this.restore(...args))
electron.ipcMain.handle('focus', (evt, ...args) => this.focus(...args))
Expand Down Expand Up @@ -1564,6 +1566,10 @@ class PearGUI extends ReadyResource {

maximize ({ id }) { return this.get(id).maximize() }

setMinimizable ({ id, value }) { return this.get(id).setMinimizable(value) }

setMaximizable ({ id, value }) { return this.get(id).setMaximizable(value) }

fullscreen ({ id }) { return this.get(id).fullscreen() }

restore ({ id }) { return this.get(id).restore() }
Expand Down

0 comments on commit b5f9524

Please sign in to comment.