Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Feb 28, 2022
1 parent 4681a11 commit afeabd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ if (path.basename(process.argv[0]).toLowerCase().includes("electron")) {
}

// If we get a second-instance event, add more files to open...
//
// "This event is guaranteed to be emitted after the ready event of app gets emitted."
// So we could likely move this down into our startup() function.

electron.app.on("second-instance", (event, commandLine, workingDirectory, additionalData) => {
if (renderer_ready) {
Expand Down

0 comments on commit afeabd1

Please sign in to comment.