Uninstalling inactive themes deactivates the active theme

Steps to reproduce

  1. Open a Vault
  2. Install two community themes and set one of them to active.
  3. Uninstall the inactive theme.
  4. Notice that Obsidian reverts to the default theme and you have to reactive the theme that you didn’t install.

Did you follow the troubleshooting guide?

Yes. This happens in a Sandbox Vault.

Expected result

I would not expect uninstalling an inactive theme to affect the status of the active theme.

Actual result

Uninstalling an inactive theme sets the theme to Obsidian’s default theme.

Environment

SYSTEM INFO:
	Obsidian version: v1.3.5
	Installer version: v1.3.5
	Operating system: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:43 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T8112 22.5.0
	Login status: logged in
	Catalyst license: insider
	Insider build toggle: on
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

Ultimately a minor bug since it’s easy to reactivate the theme – but it was unexpected.