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