From bc7d93682ce1bf6ce764d3127b4bea8e52827278 Mon Sep 17 00:00:00 2001 From: Benedict Etzel Date: Tue, 3 Sep 2024 13:48:00 +0200 Subject: [PATCH] chore: drop obsolete Tier7 pre-lobby hiding when friends list is open ...as we now have overlay masking. --- HearthWatcher/EventArgs/BaconEventArgs.cs | 2 -- Hearthstone Deck Tracker/Hearthstone/Watchers.cs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/HearthWatcher/EventArgs/BaconEventArgs.cs b/HearthWatcher/EventArgs/BaconEventArgs.cs index 78ddc7e5a..009508622 100644 --- a/HearthWatcher/EventArgs/BaconEventArgs.cs +++ b/HearthWatcher/EventArgs/BaconEventArgs.cs @@ -23,8 +23,6 @@ public BaconEventArgs( SelectedBattlegroundsGameMode = selectedBattlegroundsGameMode; } - public bool IsAnyOpen => IsShopOpen || IsJournalOpen || IsPopupShowing || IsFriendslistOpen || IsBlurActive; - public override bool Equals(object obj) => obj is BaconEventArgs args && IsShopOpen == args.IsShopOpen && IsJournalOpen == args.IsJournalOpen diff --git a/Hearthstone Deck Tracker/Hearthstone/Watchers.cs b/Hearthstone Deck Tracker/Hearthstone/Watchers.cs index 6765ebbc8..9232d0570 100644 --- a/Hearthstone Deck Tracker/Hearthstone/Watchers.cs +++ b/Hearthstone Deck Tracker/Hearthstone/Watchers.cs @@ -51,7 +51,7 @@ internal static void Stop() internal static void OnBaconChange(object sender, HearthWatcher.EventArgs.BaconEventArgs args) { - Core.Overlay.SetBaconState(args.SelectedBattlegroundsGameMode, args.IsAnyOpen); + Core.Overlay.SetBaconState(args.SelectedBattlegroundsGameMode, args.IsShopOpen || args.IsJournalOpen || args.IsPopupShowing || args.IsBlurActive); Core.Overlay.SetFriendListOpacityMask(args.IsFriendslistOpen); }