This commit is contained in:
vapormusic 2022-01-24 21:24:59 +07:00
parent b7cd87e17e
commit a0c1d3ffcd
2 changed files with 6 additions and 1 deletions

View file

@ -426,9 +426,12 @@ export class Win {
this.win.webContents.setZoomFactor(parseFloat(scale));
});
electron.ipcMain.on("windowmin", (event, width, height) => {
this.win.setMinimumSize(width,height);
})
// Set scale
electron.ipcMain.on("windowresize", (event, width, height, lock = false) => {
this.win.setMinimumSize(250,250);
this.win.setContentSize(width, height);
this.win.setResizable(!lock);
});