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:
parent
3b5c60e93a
commit
82408b8d7f
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user