fix win context on plugins, change titlebar plugin to use object call instead of ipc

This commit is contained in:
vapormusic 2022-01-19 09:53:24 +07:00
parent a51dc79a94
commit eb6d61ea5a
4 changed files with 11 additions and 15 deletions

View file

@ -393,15 +393,6 @@ export class Win {
this.win.webContents.setZoomFactor(parseFloat(scale));
});
// Titlebar #147 - Implemented as plugin
electron.ipcMain.on('set-titlebar', (e, titlebar) => {
this.win.title = `${titlebar} - Cider`
})
electron.ipcMain.on('reset-titlebar', () => {
this.win.title = `Cider`
})
/* *********************************************************************************************
* Window Events
* **********************************************************************************************/