mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-21 23:30:21 -05:00
Added changes to improve compatibility with running through Mono
This commit is contained in:
parent
5581b0d035
commit
30d64a3d2d
|
|
@ -2785,7 +2785,7 @@ private void updateOriginGame(object sender, EventArgs e)
|
|||
int gameorigin = 0;
|
||||
|
||||
// Error handling for unset field
|
||||
try { gameorigin = Util.ToInt32(CB_GameOrigin.SelectedValue.ToString()); }
|
||||
try { gameorigin = Util.ToInt32(CB_GameOrigin.SelectedItem.ToString()); }
|
||||
catch { gameorigin = 0; }
|
||||
|
||||
if ((gameorigin <= 12) && (gameorigin >= 7))
|
||||
|
|
@ -3974,7 +3974,7 @@ public bool verifiedpkx()
|
|||
};
|
||||
for (int i = 0; i < cba.Length; i++)
|
||||
{
|
||||
if (cba[i].BackColor != SystemColors.Window && cba[i].BackColor != Color.Empty)
|
||||
if (cba[i].BackColor != System.Drawing.SystemColors.Control && cba[i].BackColor != Color.Empty)
|
||||
{
|
||||
if (i < 6) // Main Tab
|
||||
tabMain.SelectedIndex = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user