Skip to content

Commit

Permalink
fix: hide opponent deck prompt upon leaving match
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Jan 22, 2024
1 parent 8436f6b commit eabf3df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Hearthstone Deck Tracker/GameEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ public void HandleInMenu()

if(!Config.Instance.KeepDecksVisible)
Core.Reset().Forget();

Core.Overlay.HideLinkOpponentDeckDisplay();

GameEvents.OnInMenu.Execute();
}

Expand Down
5 changes: 5 additions & 0 deletions Hearthstone Deck Tracker/Windows/OverlayWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,11 @@ internal void ShowLinkOpponentDeckDisplay()
LinkOpponentDeckDisplay.Show(true);
}

internal void HideLinkOpponentDeckDisplay()
{
LinkOpponentDeckDisplay.Hide(true);
}

internal void ShowBobsBuddyPanel()
{
if(!Config.Instance.RunBobsBuddy)
Expand Down

0 comments on commit eabf3df

Please sign in to comment.