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

@ -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()
}
}
})