Skip to content

Commit eecc138

Browse files
authored
Merge pull request #1114 from Araxeus/fix-single-instance-lock
2 parents 20db77f + 346d301 commit eecc138

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

menu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ const mainMenuTemplate = (win) => {
169169
{
170170
label: "Single instance lock",
171171
type: "checkbox",
172-
checked: false,
172+
checked: true,
173173
click: (item) => {
174-
if (item.checked && app.hasSingleInstanceLock())
174+
if (!item.checked && app.hasSingleInstanceLock())
175175
app.releaseSingleInstanceLock();
176-
else if (!item.checked && !app.hasSingleInstanceLock())
176+
else if (item.checked && !app.hasSingleInstanceLock())
177177
app.requestSingleInstanceLock();
178178
},
179179
},

0 commit comments

Comments
 (0)