allow only a single instance, fix updating #2
6
main.js
6
main.js
|
@ -537,6 +537,12 @@ function registerIPCPipes() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
|
const gotTheLock = app.requestSingleInstanceLock();
|
||||||
|
if (!gotTheLock) {
|
||||||
|
app.quit();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
setupTitlebar();
|
setupTitlebar();
|
||||||
|
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user