allow only a single instance

This commit is contained in:
HorizonCode 2024-01-23 13:28:35 +01:00
parent 75d444b1d5
commit 03b352bc15

View File

@ -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.