Skip to content

Commit

Permalink
Length was Count
Browse files Browse the repository at this point in the history
Whoops
  • Loading branch information
alex-gillott authored Jan 17, 2021
1 parent 5d4545e commit 6dfe975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GUI/Controls/ManageMods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -580,14 +580,14 @@ private void ModList_KeyDown(object sender, KeyEventArgs e)
{
case Keys.Home:
// First row.
if (ModGrid.Rows.Length > 0) //Handles for empty filters
if (ModGrid.Rows.Count > 0) //Handles for empty filters
ModGrid.CurrentCell = ModGrid.Rows[0].Cells[SelectableColumnIndex()];
e.Handled = true;
break;

case Keys.End:
// Last row.
if (ModGrid.Rows.Length > 0) //Handles for empty filters
if (ModGrid.Rows.Count > 0) //Handles for empty filters
ModGrid.CurrentCell = ModGrid.Rows[ModGrid.Rows.Count - 1].Cells[SelectableColumnIndex()];
e.Handled = true;
break;
Expand Down

0 comments on commit 6dfe975

Please sign in to comment.