Fix #391: prevent Metronome Mode softlock (#392)

* Fix #391: Metronome Mode causes catching tut. softlock

* Fix #391: Metronome Mode causes catching tut. softlock
This commit is contained in:
J. Lord
2018-11-05 18:05:34 -08:00
committed by Kurt
parent ba01343f35
commit 2abd4a2441
2 changed files with 8 additions and 4 deletions

View File

@@ -209,13 +209,15 @@ private void B_Metronome_Click(object sender, EventArgs e)
for (int i = 0; i < CB_Move.Items.Count; i++)
{
CB_Move.SelectedIndex = i;
if (CB_Move.SelectedIndex != 117)
if (CB_Move.SelectedIndex != 117 || CB_Move.SelectedIndex != 32)
NUD_PP.Value = 0;
if (CB_Move.SelectedIndex == 117)
NUD_PP.Value = 40;
if (CB_Move.SelectedIndex == 32)
NUD_PP.Value = 1;
}
CB_Move.SelectedIndex = 0;
WinFormsUtil.Alert("All Moves have had their Base PP values modified!");
}
}
}
}

View File

@@ -271,13 +271,15 @@ private void B_Metronome_Click(object sender, EventArgs e)
for (int i = 0; i < CB_Move.Items.Count; i++)
{
CB_Move.SelectedIndex = i;
if (CB_Move.SelectedIndex != 117)
if (CB_Move.SelectedIndex != 117 || CB_Move.SelectedIndex != 32)
NUD_PP.Value = 0;
if (CB_Move.SelectedIndex == 117)
NUD_PP.Value = 40;
if (CB_Move.SelectedIndex == 32)
NUD_PP.Value = 1;
}
CB_Move.SelectedIndex = 0;
WinFormsUtil.Alert("All Moves have had their Base PP values modified!");
}
}
}
}