Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Electron 4.2.11 #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 7 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
@@ -47,13 +47,14 @@ bugsnag.register('032040bba551785c7846442332cc067f', {
releaseStage: releaseStage
})

const shouldQuit = app.makeSingleInstance((commandLine, workingDirectory) => {
const shouldQuit = app.requestSingleInstanceLock()
app.on('second-instance', (event, commandLine, workingDirectory) => {
// Someone tried to run a second instance, we should focus our window.
if (displayManager) {
displayManager.showMain()
}
})
if (shouldQuit) {
if (!shouldQuit) {
app.exit()
}

@@ -191,7 +192,10 @@ function newTransparentOnTopWindow(
}

function onReady() {
app.dock.hide() // needed to support fullscreen mode in OS X, see https://github.com/electron/electron/issues/3302
// On Arch Linux with OpenBox, `app.dock` is `undefined`
if (app.dock) {
app.dock.hide() // needed to support fullscreen mode in OS X, see https://github.com/electron/electron/issues/3302
}
displayManager = new DisplayManager(
transparencyDisabled,
bugsnag,
Loading