Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin icons are no longer refreshed in time for the new version of Obsidian #15

Open
tp1415926535 opened this issue Nov 13, 2024 · 2 comments

Comments

@tp1415926535
Copy link

tp1415926535 commented Nov 13, 2024

Describe the bug
Since obsidian was updated to 1.7.4, if the plugin loading is not set to instant, and the plugin panel is not active when obsidian is opened, the icon stays as a file icon instead of refreshing to what it should be.
image

Plugin loaded but doesn't refresh the icon, you can only see what panel it is by clicking on it.
image
image

I think it might be because of this Obsidian changelog:

Views now load only when visible, improving startup performance and memory usage. This might cause issues with some plugins. We have published a guide to help developers update their plugins.

To Reproduce
Steps to reproduce the behavior:

  1. Find a plugin with a panel
  2. Change it to short delay in the Lazy Plugin Loader settings.
  3. Move the focus to the other tab where that plugin panel is located.
  4. Restart obsidian
  5. See error

Expected behavior
Set short delay/long delay can refresh the plugin panel icon after loading.

Desktop (please complete the following information):

  • Obsidian: v1.7.4
  • Lazy plugin Version: v1.0.18
@alangrainger
Copy link
Owner

I think it might be up to the individual plugin developers to handle this situation correctly.

Lazy Loader only uses Obsidian's built-in methods to turn plugins on and off, so there's not really much I can do on this one I'm sorry :(

await obsidian.enablePlugin(pluginId)

@zanodor
Copy link

zanodor commented Feb 9, 2025

Workaround is: keep all the plugins that have sidebar elements in instant loader mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants