From e701d67d79a0ff5e39158badba7d726b885fdade Mon Sep 17 00:00:00 2001 From: "Michael J. Seiferling" Date: Mon, 12 Jun 2017 10:31:10 -0600 Subject: [PATCH] Fix for issue #80 --- GBM/Forms/frmGameManager.vb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/GBM/Forms/frmGameManager.vb b/GBM/Forms/frmGameManager.vb index 282c3fc..b3a6a71 100644 --- a/GBM/Forms/frmGameManager.vb +++ b/GBM/Forms/frmGameManager.vb @@ -403,9 +403,19 @@ Public Class frmGameManager oList.Sort(AddressOf mgrCommon.CompareByListBoxItemByValue) lstGames.BeginUpdate() - lstGames.DataSource = oList lstGames.ValueMember = "Key" lstGames.DisplayMember = "Value" + + 'Due to a control bug with Mono we need to fill the list box differently on Linux + If mgrCommon.IsUnix Then + lstGames.Items.Clear() + For Each kp As KeyValuePair(Of String, String) In oList + lstGames.Items.Add(kp) + Next + Else + lstGames.DataSource = oList + End If + lstGames.EndUpdate() lstGames.ClearSelected() IsLoading = False