alangrainger / obsidian-lazy-plugins

Load plugins with a delay on Obsidian startup, so that you can get your app startup down into the sub-second loading time.
MIT License
230 stars 1 forks source link

Disabled plugins are reenabled on startup #13

Closed mAAdhaTTah closed 1 month ago

mAAdhaTTah commented 1 month ago

Describe the bug Plugins that are disabled via the community plugins view don't stay disabled.

To Reproduce Steps to reproduce the behavior:

  1. Go to Community Plugins
  2. Disable a plugin
  3. Close Obsidian and reopen it
  4. See that the disabled plugin is re-enabled

Expected behavior A plugin that is disabled in the Community Plugins view should stay disabled by Lazy Plugins. This took me a while to figure out why it was happening and resulted in confusing behavior.

alangrainger commented 1 month ago

Sadly there is no hook in Obsidian to know when a plugin is disabled/enabled, so Lazy Loader can't listen for that change.

If you're using Lazy Loader, it's best to manage enabling/disabling within the Lazy Loader plugin interface.

mAAdhaTTah commented 1 month ago

Oh that's annoying. Ok will keep that in mind then.