Commit 6a2ec700 authored by rocosen's avatar rocosen

Update main.ts

parent 77e4f4c6
...@@ -121,7 +121,7 @@ ipcMain.on('resize-home', (event) => { ...@@ -121,7 +121,7 @@ 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.webContents.openDevTools();
homeWindown.once('ready-to-show', () => { homeWindown.once('ready-to-show', () => {
homeWindown?.show(); homeWindown?.show();
}); });
...@@ -174,8 +174,10 @@ ipcMain.on('openAtLogin-false', () => { ...@@ -174,8 +174,10 @@ ipcMain.on('openAtLogin-false', () => {
}); });
ipcMain.on('openLogin-windown', () => { ipcMain.on('openLogin-windown', () => {
mainWindow?.show(); if (mainWindow) {
mainWindow?.focus(); mainWindow.show();
mainWindow.focus();
}
}); });
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
......
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