allow only a single instance, fix updating #2

Merged
HorizonCode merged 5 commits from dev into master 2024-01-25 08:28:58 +00:00
Showing only changes of commit 03b352bc15 - Show all commits

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.