fix: bring existing Canvas window to front on tray menu click

Previously, clicking Canvas in the tray menu when the window was already
open did nothing because Activate() was only called when creating a new
window. Move Activate() outside the creation guard so it always runs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Christine Yan 2026-05-05 15:54:53 -04:00
parent 3b5c60e93a
commit 82408b8d7f

View File

@ -1018,8 +1018,8 @@ public sealed class NodeService : IDisposable
{
_canvasWindow = new CanvasWindow();
_canvasWindow.SetTrustedGatewayOrigin(GatewayUrl, _token);
_canvasWindow.Activate();
}
_canvasWindow?.Activate();
}
// Mutable context shared with GatewayActionTransport. SessionKey is updated