mac: unable to show launcher windows when starting minimized

This commit is contained in:
jean-emmanuel 2024-02-22 09:29:35 +01:00
parent b63402fce8
commit 1a4b971b18
3 changed files with 12 additions and 1 deletions

View file

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