git ssb

16+

Dominic / patchbay



Commit fbeb26bad2f96cc85202a94623d26c0c6539b0be

Merge pull request #278 from ssbc/fix-activate-mac

fix reopening main window on macOS
Matt McKegg authored on 11/8/2018, 8:01:35 AM
GitHub committed on 11/8/2018, 8:01:35 AM
Parent: 1c2926f12ff8e365e1d469f23180b50d50b9c749
Parent: a09a8ffcae7fccc632b9ffa98d0d1f30d8f3bd53

Files changed

index.jschanged
index.jsView
@@ -20,8 +20,15 @@
2020 electron.app.on('before-quit', function () {
2121 quitting = true
2222 })
2323
24 + electron.app.on('activate', function (e) {
25 + // reopen the app when dock icon clicked on macOS
26 + if (windows.main) {
27 + windows.main.show()
28 + }
29 + })
30 +
2431 // allow inspecting of background process
2532 electron.ipcMain.on('open-background-devtools', function (ev, config) {
2633 if (windows.background) {
2734 windows.background.webContents.openDevTools({ detach: true })

Built with git-ssb-web