New tab is opened in addition to pinned tab

Steps to reproduce

  1. create 2 documents/notes. document1 and document2

image

  1. open document 1. Pin it.

  2. open document 2.

  1. now click on document 1 in pinned tab:

see how document 1 got automatically highlighted/selected in explorer. Pass.

  1. now click again on document 2 tab

  1. now instead of clicking on Pinned tab - click on the document 1 in file explorer

now you have 2 documents opened, both are document 1.

Expected result

Instead of opening second document with the same name - the program should have opened/located the pinned tab

Actual result

a new tab was opened, so basically now there are 2 tabs with the same name.

Environment

SYSTEM INFO:
Obsidian version: v1.0.3
Installer version: v1.0.3
Operating system: Windows 10 Pro 10.0.19044
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

nothing wrong here, that’s how pinned tab work.