Settings dialog resets to first tab every time

Steps to reproduce

  1. Open settings, and navigate to any tab other than the first
  2. Close settings, then re-open

Expected result

Previously opened tab should be visible (the behavior of 0.12.1 and earlier versions)

Actual result

Active tab is always reset to the first one – a problem when you need to keep scrolling through 20 plugin option tabs to reach the one you just had open a second ago because you’re trying to figure out optimum settings. :frowning:

Environment

  • Operating system: Windows
  • Obsidian version: 0.12.3

Additional information

It appears that the newly-added API to allow setting tabs to close resulted in loss of the active tab state. (Previously, the active tab state was left intact at settings close.)

This could probably be fixed by saving the active tab ID in onClose, then restoring it onOpen, as that is the approach I’m using as a workaround in hotkey-helper at the moment.

1 Like

Will be fixed in 0.12.4

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.