Skip to content

Commit

Permalink
Control enablement of Tier 7 with Show Tiers checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoraes74 committed Aug 30, 2024
1 parent 7255de0 commit 8d287ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HSTracker/UIs/Preferences/BattlegroundsPreferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class BattlegroundsPreferences: NSViewController, PreferencePane {
Settings.showOpponentWarband = showOpponentWarband.state == .on
} else if sender == showTiers {
Settings.showTiers = showTiers.state == .on
updateEnablement()
} else if sender == showBDonTiers {
Settings.showBattlecryDeathrattleOnTiers = sender.state == .on
} else if sender == showTavernSpells {
Expand Down Expand Up @@ -195,6 +196,7 @@ class BattlegroundsPreferences: NSViewController, PreferencePane {
showBattlegroundsCompStats.isEnabled = enabled
showQuestPicking.isEnabled = enabled
showCompositionStats.isEnabled = enabled
alwaysShowTavernTier7.isEnabled = showTiers.state == .on
}

@IBAction func reset(_ sender: NSButton) {
Expand Down

0 comments on commit 8d287ac

Please sign in to comment.