From 0622b4b5497d8bd923eb0d6dd3f917dfcbda9d53 Mon Sep 17 00:00:00 2001 From: Axel Karjalainen Date: Thu, 22 May 2025 22:38:14 +0300 Subject: [PATCH] fix: single instance detection when not packaged --- electron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron.js b/electron.js index d70f20f271..158bb9325c 100644 --- a/electron.js +++ b/electron.js @@ -76,7 +76,7 @@ if (is.development && !port) { return; }; -if (app.isPackaged && !app.requestSingleInstanceLock()) { +if (!is.development && !app.requestSingleInstanceLock()) { Api.exit(mainWindow, '' ,false); return; };