allow only a single instance
This commit is contained in:
1 parent
75d444b1d5
commit
03b352bc15
1 file changed
+6
@@ -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.
|
||||||
|
|||||||
Reference in new issue
Block a user