[BUG] Fix ArgumentOutOfRangeException (#127)

This commit is contained in:
Markus Hofknecht 2020-07-29 20:32:32 +02:00
parent c3fa2cf404
commit 55324c8a58

View file

@ -95,6 +95,8 @@ namespace SystemTrayMenu.Handler
}
internal void ClickOpensInstantly(DataGridView dgv, int rowIndex)
{
if (dgv.Rows.Count > rowIndex)
{
timerStartLoad.Stop();
StopLoadMenu?.Invoke();
@ -103,6 +105,7 @@ namespace SystemTrayMenu.Handler
checkForMouseActive = false;
CallOpenMenuNow();
}
}
internal void EnterOpensInstantly(DataGridView dgv, int rowIndex)
{