launcher: add Start minimized menu option

This commit is contained in:
jean-emmanuel 2022-11-09 08:45:07 +01:00
parent 37130c22d0
commit d6a864fe71
3 changed files with 34 additions and 21 deletions

View file

@ -62,6 +62,9 @@ module.exports = function(options={}) {
window.once('ready-to-show', ()=>{
window.show()
if (options.id === 'launcher' && settings.read('startMinimized')) {
window.minimize()
}
})
window.webContents.once('page-title-updated', ()=>{