Fixed: don't edit when nothing selected on listbox

This commit is contained in:
Ray committed 2021-07-28 20:36:22 +01:00
1 parent 6884dab9be
commit 817693ba41
1 file changed
+5
+5
View File
@@ -312,6 +312,11 @@ namespace FizzyLauncher.Windows.Forms
return; return;
} }
if (listBox1.ListBox.SelectedIndex < 0)
{
return;
}
EditTileForm.ShowEditDialog(listBox1); EditTileForm.ShowEditDialog(listBox1);
} }