Skip to content

Commit

Permalink
only display version in deckname if more than one version exists (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
epix37 committed Jan 29, 2015
1 parent 13defaf commit 97d7a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hearthstone Deck Tracker/Hearthstone/Deck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ List<Card> missingCards

public string NameAndVersion
{
get { return string.Format("{0} (v{1}.{2})", Name, Version.Major, Version.Minor); }
get { return Versions.Count == 0 ? Name : string.Format("{0} (v{1}.{2})", Name, Version.Major, Version.Minor); }
}

[XmlIgnore]
Expand Down

0 comments on commit 97d7a92

Please sign in to comment.