single
This commit is contained in:
parent
62c2d3d99d
commit
ff988aa446
6
main.js
6
main.js
@ -479,12 +479,12 @@ function createMenu() {
|
|||||||
}
|
}
|
||||||
const shouldQuit = app.makeSingleInstance(() => {
|
const shouldQuit = app.makeSingleInstance(() => {
|
||||||
if (mainWindow) {
|
if (mainWindow) {
|
||||||
if (mainWindow.isMinimized()) mainWindow.restore()
|
if (mainWindow.isMinimized()) mainWindow.restore();
|
||||||
mainWindow.focus()
|
mainWindow.focus();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
shouldQuit && app.quit()
|
shouldQuit && app.quit();
|
||||||
const createMainWindow = () => {
|
const createMainWindow = () => {
|
||||||
var mainWindowState = windowStateKeeper({
|
var mainWindowState = windowStateKeeper({
|
||||||
defaultWidth: 745,
|
defaultWidth: 745,
|
||||||
|
Loading…
Reference in New Issue
Block a user