Skip to content

Commit 40dbed3

Browse files
committed
feat: only show buddy guides if buddies are enabled
1 parent 4de9774 commit 40dbed3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/Guides/Heroes/HeroGuideTooltip.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
Margin="0,0,0,3"
8787
guides:TextBlockExtensions.BindableInlines="{Binding PublishedGuide}"
8888
/>
89-
<StackPanel Margin="0,9,0,0" Visibility="{Binding IsBuddyGuidePublished, Converter={StaticResource BoolToVisibility}}">
89+
<StackPanel Margin="0,9,0,0" Visibility="{Binding ShouldShowBuddyGuide, Converter={StaticResource BoolToVisibility}}">
9090
<Border Padding="9" Background="#1C2022" CornerRadius="5" BorderThickness="1" BorderBrush="#2e3235">
9191
<StackPanel>
9292
<hearthstoneDeckTracker:OutlinedTextBlock Margin="0,0,0,8" FontSize="12" Text="{lex:Loc Battlegrounds_CompGuide_BuddyGuide}" FontFamily="/HearthstoneDeckTracker;component/Resources/#Chunkfive"/>

Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/Guides/Heroes/HeroGuideTooltip.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,5 @@ public IEnumerable<Inline>? BuddyGuide
141141
}
142142
}
143143
public bool IsBuddyGuidePublished => BuddyGuide != null && BuddyGuide.Any();
144+
public bool ShouldShowBuddyGuide => Core.Game.BattlegroundsBuddiesEnabled && IsBuddyGuidePublished;
144145
}

0 commit comments

Comments
 (0)