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
228 stars 1 forks source link

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

Open tp1415926535 opened 1 week ago

tp1415926535 commented 1 week ago

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):

alangrainger commented 1 week ago

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 :(

https://github.com/alangrainger/obsidian-lazy-plugins/blob/15613d17fbc8a912a8dcef4fdc68fd9f248e8f33/src/main.ts#L77