Fix template IVs getting overwritten on startup

Closes #2296
setting datasource triggers a changed event, which updates IVs
set flag to indicate this isn't the user doing this change
This commit is contained in:
Kurt 2019-05-05 12:57:51 -07:00
parent 316430985a
commit b5b4b67263

View file

@ -523,8 +523,10 @@ namespace PKHeX.WinForms.Controls
public void InitializeDataSources() public void InitializeDataSources()
{ {
ChangingFields = true;
CB_HPType.InitializeBinding(); CB_HPType.InitializeBinding();
CB_HPType.DataSource = Util.GetCBList(GameInfo.Strings.types.Skip(1).Take(16).ToArray()); CB_HPType.DataSource = Util.GetCBList(GameInfo.Strings.types.Skip(1).Take(16).ToArray());
ChangingFields = false;
} }
} }
} }