Skip to content

Commit

Permalink
Unload plugins when the main window is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
ko-vasilev committed May 2, 2015
1 parent c058cd9 commit 2d012a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Hearthstone Deck Tracker/MainWindow/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ private async void Window_Closing(object sender, CancelEventArgs e)
DeckList.Save();
DeckStatsList.Save();
PluginManager.SavePluginsSettings();
PluginManager.Instance.UnloadPlugins();
}
catch(Exception)
{
Expand Down
2 changes: 1 addition & 1 deletion Hearthstone Deck Tracker/Plugins/PluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private IEnumerable<PluginWrapper> GetModule(string pFileName, Type pTypeInterfa
return plugins;
}

private void UnloadPlugins()
internal void UnloadPlugins()
{
//not really unloading anything but it's the best I can do without multiple assemblies
foreach(var plugin in Plugins)
Expand Down

0 comments on commit 2d012a6

Please sign in to comment.