fix(windows): call 'Show Console' twice to make the console actually show on first use

The underlying issue may be in the node-hide-console-window component.
This fix is adequate in my view, for a low-use code path.

Fixes: #9694
Test-bot: skip
This commit is contained in:
Marc Durdin 2026-08-31 14:56:12 +02:00
parent f8a5164c57
commit 0f3e84bcc7

View file

@ -71,6 +71,11 @@ export class Win32Tray {
open(ngrokAddress);
break;
case 'item-id-show-console':
// #9694 - the first time, this has to be called twice for the console
// window to appear. This could probably be fixed in the source
// node-hide-console-window component, but this works well enough and
// has little in the way of side-effects.
WindowsConsole.showConsole();
WindowsConsole.showConsole();
break;
case 'item-id-hide-console':