mac: unable to show launcher windows when starting minimized
This commit is contained in:
parent
b63402fce8
commit
1a4b971b18
3 changed files with 12 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 1.26.1
|
||||
|
||||
- bug fixes
|
||||
- mac: unable to show launcher windows when starting minimized
|
||||
|
||||
## 1.26.0
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -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": "jean-emmanuel@ammd.net"
|
||||
|
|
|
|||
|
|
@ -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'})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue