Skip to content

Commit

Permalink
Delete MenuState when game ends
Browse files Browse the repository at this point in the history
TheSaltyWaffle committed Dec 28, 2014
1 parent 75af6ba commit 0f6f860
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LeagueSharp.Common/LeagueSharp.Common/Menu.cs
Original file line number Diff line number Diff line change
@@ -687,6 +687,8 @@ public void AddToMainMenu()
{
InitMenuState(Assembly.GetCallingAssembly().GetName().Name);

CustomEvents.Game.OnGameEnd += delegate { UnloadMenuState(); };
Game.OnGameEnd += delegate { UnloadMenuState(); };
AppDomain.CurrentDomain.DomainUnload += (sender, args) => UnloadMenuState();
AppDomain.CurrentDomain.ProcessExit += (sender, args) => UnloadMenuState();

0 comments on commit 0f6f860

Please sign in to comment.