Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ElectronNET.API/Runtime/StartupManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ private BuildInfo GatherBuildInfo()

if (isSingleInstance?.Length > 0 && bool.TryParse(isSingleInstance, out var isSingleInstanceActive) && isSingleInstanceActive)
{
buildInfo.ElectronSingleInstance = "yes";
buildInfo.ElectronSingleInstance = "true";
Comment thread
davidroth marked this conversation as resolved.
}
else
{
buildInfo.ElectronSingleInstance = "no";
buildInfo.ElectronSingleInstance = "false";
}

if (httpPort?.Length > 0 && int.TryParse(httpPort, out var port))
Expand Down
2 changes: 1 addition & 1 deletion src/ElectronNET.Host/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ app.on('will-finish-launching', () => {

const manifestJsonFile = require(manifestJsonFilePath);

if (manifestJsonFile.singleInstance === "yes") {
if (manifestJsonFile.singleInstance === "true" || manifestJsonFile.singleInstance === "True") {
Comment thread
davidroth marked this conversation as resolved.
const mainInstance = app.requestSingleInstanceLock();
app.on('second-instance', (events, args = []) => {
args.forEach((parameter) => {
Expand Down
Loading