Commit 8fdf1c5e authored by rocosen's avatar rocosen

Update main.ts

parent 21e637d9
...@@ -79,6 +79,7 @@ ipcMain.on('resize-home', (event) => { ...@@ -79,6 +79,7 @@ ipcMain.on('resize-home', (event) => {
return; return;
} }
homeWindown = new BrowserWindow({ homeWindown = new BrowserWindow({
show: false,
width: 350, width: 350,
height: 425, height: 425,
minWidth: 100, minWidth: 100,
...@@ -97,6 +98,10 @@ ipcMain.on('resize-home', (event) => { ...@@ -97,6 +98,10 @@ ipcMain.on('resize-home', (event) => {
homeWindown.loadURL(resolveHtmlPath(`index.html#/home`)); homeWindown.loadURL(resolveHtmlPath(`index.html#/home`));
positioner.position(homeWindown, tray.getBounds(), alignment); positioner.position(homeWindown, tray.getBounds(), alignment);
isDev && homeWindown.webContents.openDevTools(); isDev && homeWindown.webContents.openDevTools();
homeWindown.webContents.openDevTools();
homeWindown.on('ready-to-show', () => {
homeWindown?.show();
});
homeWindown.on('blur', () => { homeWindown.on('blur', () => {
!isDev && homeWindown?.hide(); !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