delashum / obsidian-checklist-plugin

MIT License
376 stars 39 forks source link

Remove initialLoad & trigger refresh onOpen #138

Closed flankstaek closed 2 years ago

flankstaek commented 2 years ago

Fixes #134 which was also happening on my machine.

When looking into the problem it appeared that the metaDataCache resolved event actually does not happen on initial load - only on subsequent changes to the cache.

This removes the initialLoad logic and triggers a refresh on Load so that the plugin loads immediately upon opening. Caching should still be present due to listening to the metaDataCache event.

Happy to make any required changes.