This commit is contained in:
shenmo 2022-09-02 14:02:41 +08:00
parent 62c2d3d99d
commit ff988aa446

View File

@ -479,12 +479,12 @@ function createMenu() {
}
const shouldQuit = app.makeSingleInstance(() => {
if (mainWindow) {
if (mainWindow.isMinimized()) mainWindow.restore()
mainWindow.focus()
if (mainWindow.isMinimized()) mainWindow.restore();
mainWindow.focus();
}
})
shouldQuit && app.quit()
shouldQuit && app.quit();
const createMainWindow = () => {
var mainWindowState = windowStateKeeper({
defaultWidth: 745,