Skip to content

Commit

Permalink
mac: unable to show launcher windows when starting minimized
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-emmanuel committed Feb 22, 2024
1 parent b63402f commit 1a4b971
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.26.1

- bug fixes
- mac: unable to show launcher windows when starting minimized

## 1.26.0

- bug fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "open-stage-control",
"productName": "Open Stage Control",
"description": "Libre and modular OSC / MIDI controller",
"version": "1.26.0",
"version": "1.26.1",
"author": {
"name": "Jean-Emmanuel Doucet",
"email": "[email protected]"
Expand Down
6 changes: 6 additions & 0 deletions src/server/electron-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ module.exports = function(options={}) {
}
})

if (options.id === 'launcher' && process.platform === 'darwin' && settings.read('startMinimized')) {
app.on('activate', ()=>{
if (!window.isDestroyed()) window.show()
})
}

window.webContents.once('page-title-updated', ()=>{
if (options.fullscreen) {
window.webContents.sendInputEvent({keyCode: 'F11', type: 'keyDown'})
Expand Down

0 comments on commit 1a4b971

Please sign in to comment.