-
-
Notifications
You must be signed in to change notification settings - Fork 457
Remove setting after uninstalling plugin #336
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
Remove setting after uninstalling plugin #336
Conversation
|
|
||
|
|
||
| Core.Plugin.PluginManager.Settings.Plugins.Remove(plugin.ID); | ||
| Core.Plugin.PluginManager.AllPlugins.RemoveAll(p => p.Metadata.ID == plugin.ID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we can do this, does this mean no restart is required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, we still cannot unload assembly unless we use the library @JohnTheGr8 has mentioned, but we can load assembly dynamically, which means that installation may not require restart.
|
This is ready for review? |
yes, it is a simple change and it works |
fix #265
TODO:
create an interface for cleaning up plugin information if they store setting or some data.