git ssb

16+

Dominic / patchbay



Commit a09a8ffcae7fccc632b9ffa98d0d1f30d8f3bd53

fix reopening main window on macOS

Matt McKegg committed on 11/8/2018, 2:15:33 AM
Parent: 1c2926f12ff8e365e1d469f23180b50d50b9c749

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