Skip to content

Commit

Permalink
fix(Battlegrounds): hero pick toast lingering on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed May 8, 2024
1 parent 566eab6 commit 55abf4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Hearthstone Deck Tracker/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,10 @@ private static async void UpdateOverlayAsync()
Overlay.Tier7PreLobbyViewModel.Reset();
Overlay.BattlegroundsHeroPickingViewModel.Reset();
Overlay.BattlegroundsQuestPickingViewModel.Reset();
Overlay.HideBattlegroundsHeroPanel();
Overlay.ConstructedMulliganGuideViewModel.Reset();
Overlay.ConstructedMulliganGuidePreLobbyViewModel.Reset();
Overlay.HideMulliganToast(false);

TrayIcon.MenuItemStartHearthstone.Visible = true;

Expand Down
1 change: 1 addition & 0 deletions Hearthstone Deck Tracker/GameEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@ public async void HandleGameEnd(bool stateComplete)
Core.Windows.BattlegroundsSessionWindow.OnGameEnd();
Core.Overlay.BattlegroundsHeroPickingViewModel.Reset();
Core.Overlay.BattlegroundsQuestPickingViewModel.Reset();
Core.Overlay.HideBattlegroundsHeroPanel();
var hero = _game.Entities.Values.FirstOrDefault(x => x.IsPlayer && x.IsHero);
var finalPlacement = hero?.GetTag(GameTag.PLAYER_LEADERBOARD_PLACE) ?? 0;
CaptureBattlegroundsHeroPickingFeedback(finalPlacement);
Expand Down

0 comments on commit 55abf4c

Please sign in to comment.