Commit 8fdf1c5e authored by rocosen's avatar rocosen

Update main.ts

parent 21e637d9
......@@ -79,6 +79,7 @@ ipcMain.on('resize-home', (event) => {
return;
}
homeWindown = new BrowserWindow({
show: false,
width: 350,
height: 425,
minWidth: 100,
......@@ -97,6 +98,10 @@ ipcMain.on('resize-home', (event) => {
homeWindown.loadURL(resolveHtmlPath(`index.html#/home`));
positioner.position(homeWindown, tray.getBounds(), alignment);
isDev && homeWindown.webContents.openDevTools();
homeWindown.webContents.openDevTools();
homeWindown.on('ready-to-show', () => {
homeWindown?.show();
});
homeWindown.on('blur', () => {
!isDev && homeWindown?.hide();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment