Merge pull request #156 from spacechase0/addcontrollers-bugfix
Fix exception when pressing Add Controllers button
This commit is contained in:
commit
425fe7ec93
1 changed files with 6 additions and 1 deletions
|
@ -29,8 +29,13 @@ namespace BetterJoyForCemu {
|
|||
|
||||
private bool ContainsText(ListBox a, String manu) {
|
||||
foreach (var v in a.Items)
|
||||
if ((v as dynamic).Text.Equals(manu))
|
||||
{
|
||||
dynamic d = v as dynamic;
|
||||
if (d.Text == null)
|
||||
continue;
|
||||
if (d.Text.Equals(manu))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue