launcher: start hidden on mac is "start minimized" is set

This commit is contained in:
jean-emmanuel 2024-02-21 10:10:55 +01:00
parent d387397c14
commit f78814ba45
2 changed files with 8 additions and 1 deletions

View file

@ -13,6 +13,9 @@
- xy/multixy: add `axisLock` property; allow locking one the axis by holding `Shift` while dragging if `axisLock` is not set, bypasses it otherwise.
- knob/fader/range: add `colorKnob` property
- misc
- on Mac, start with the launcher window hidden if `Start minimized` is set
## 1.25.7
- bug fixes

View file

@ -63,7 +63,11 @@ module.exports = function(options={}) {
window.once('ready-to-show', ()=>{
window.show()
if (options.id === 'launcher' && settings.read('startMinimized')) {
window.minimize()
if (process.platform === 'darwin') {
window.hide()
} else {
window.minimize()
}
}
})