Current note is not highlighted in graph view if the graph window is hidden at startup

If a graph window is open, but hidden (e.g. in a closed sidebar) at startup, the currently displayed note will not be highlighted in it. This affects global and local graph alike.

Steps to reproduce

  1. In a newly created vault, drag the global graph tab into the right sidebar.
  2. Close the right sidebar.
  3. Close and restart Obsidian.
  4. Open the right sidebar.
  5. Click into the current note to edit it.

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

The current note should be highlighted in blue in the graph view as soon as it gets keyboard focus.

Actual result

The current note is not highlighted in the graph view until another note is opened, e.g. by clicking a link in the current note.

Environment

SYSTEM INFO:
Obsidian version: v1.11.5
Installer version: v1.9.14
Operating system: Windows 11 Pro 10.0.26100
Login status: not logged in
Language: de
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none


Additional information