Skip to content

Commit

Permalink
fix: plugin compatibility for Config.Instance.SelectedLanguage
Browse files Browse the repository at this point in the history
This commit reintroduces Config.Instance.SelectedLanguage as an obsolete
property after it was removed in a8fb90f.

If you're a plugin author you have two options:
- if you want to keep using the card language, call Helper.GetCardLanguage()
instead
- if you want to switch to using the Deck Tracker UI language, use
Config.Instance.Localization instead.
  • Loading branch information
beheh committed Nov 30, 2024
1 parent e34c8bf commit 2759ab9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Unreleased
**Plugins**:
- Fixed compatibility with some older plugins relying on a deprecated property.

## **Release v1.37.4 - 2024-11-28**
**Hearthstone**:
- Added card icons for cards that return to hand at the end of the turn (Corpsicle, Libram of Divinity).
Expand Down
4 changes: 4 additions & 0 deletions Hearthstone Deck Tracker/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,10 @@ public class Config
[DefaultValue("BaseLight")]
public string ThemeName = "BaseLight";

[XmlIgnore]
[Obsolete("Use Helper.GetCardLanguage() instead to keep using the card language, or switch to Config.Instance.Localization to start using the UI language", true)]
public string SelectedLanguage = "enUS";

#endregion

private GameDetailsConfig? _gameDetails;
Expand Down

0 comments on commit 2759ab9

Please sign in to comment.