allow only a single instance
This commit is contained in:
parent
75d444b1d5
commit
03b352bc15
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