Skip to content

Commit

Permalink
fix "all sets" filter position for deck exporting (TGT) (HearthSim#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
Epix37 committed Aug 18, 2015
1 parent 751772e commit b1729c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Hearthstone Deck Tracker/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ public class Config
[DefaultValue(0.067)]
public double ExportAllSetsButtonX = 0.067;

[DefaultValue(0.639)]
public double ExportAllSetsButtonY = 0.639;
[DefaultValue(0.607)]
public double ExportAllSetsButtonY = 0.607;

[DefaultValue(0.04)]
public double ExportCard1X = 0.04;
Expand Down
5 changes: 5 additions & 0 deletions Hearthstone Deck Tracker/MainWindow/MainWindow_Load.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ private void ConvertLegacyConfig(Version currentVersion, Version configVersion)
converted = true;
}
}
if(configVersion <= new Version(0, 10, 10, 0)) //button moved up with new expansion added to the list
{
Config.Instance.Reset("ExportAllSetsButtonY");
converted = true;
}
}

if(converted)
Expand Down

0 comments on commit b1729c3

Please sign in to comment.