- Removed the
onunload()
function
Originally this was set up so that when the plugin unloaded, it would enablePluginAndSave()
the other plugins based on their Lazy Loader startup config, to get them back to their original state in Obsidian's plugin page.
The problem with that is that the onunload()
function is called during plugin update also, which means that every time you get an update for this plugin, it would cause:
a) A slowdown across the vault for the next 1-2 restarts.
b) The possibility of plugins being loaded twice / duplicated.
Since across all users, updating the plugin is common, and uninstalling the plugin is less common, I decided to remove this function.
I apologise to the people who have to manually re-enable their plugins once they uninstall this one :(