From 1a4b971b18a58b2e2fce09096fbad00e6a140a72 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 22 Feb 2024 09:29:35 +0100 Subject: [PATCH] mac: unable to show launcher windows when starting minimized --- CHANGELOG.md | 5 +++++ package.json | 2 +- src/server/electron-window.js | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83e8bc0f4..6f295ccd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.26.1 + +- bug fixes + - mac: unable to show launcher windows when starting minimized + ## 1.26.0 - bug fixes diff --git a/package.json b/package.json index 552def44d..e849fd971 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/server/electron-window.js b/src/server/electron-window.js index 00c41defe..40f0ea364 100644 --- a/src/server/electron-window.js +++ b/src/server/electron-window.js @@ -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'})