Skip to content

Conversation

@SebastianMC
Copy link
Owner

Fix for #205 - recursive FileExplorer patching bug

  • introduced explicit unpatch (if patched) -> patch cycle
  • patching every time when switching the plugin state to active is required because the FileExplorer can get into some inconsistent states, and refreshing the patch fixes potential issues. Inconsistent state of FIleExplorer typically is a result of other plugins which don't handle gracefully the Obsidian deferred views, introduced with Obsidian 1.7.x (e.g. some plugins which haven't been updated to accommodate to newer versions of Obsidian, yet still usable)

- fix addressing the bug
- renames and refactoring for better code readability
@SebastianMC SebastianMC merged commit 8e11dd3 into master May 7, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

Performance degradation over time due to recursive monkey-patching of getSortedFolderItems

2 participants