File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -287,11 +287,15 @@ await Application.Instance.InvokeAsync(() =>
287287
288288 private void HandleGameList ( List < GameInformation > games )
289289 {
290+ Debug . Assert ( this . _gamesDropDown != null ) ;
291+
290292 if ( this . _connectButton != null )
291293 {
292294 this . _connectButton . Enabled = false ;
293295 this . _connectButton . Text = "Connected!" ;
294296 }
297+
298+ this . _gamesDropDown . Items . Clear ( ) ;
295299
296300 foreach ( GameInformation game in games )
297301 {
@@ -329,10 +333,10 @@ private void HandleGameList(List<GameInformation> games)
329333 }
330334 }
331335
332- this . _gamesDropDown ! . Items . Add ( item ) ;
336+ this . _gamesDropDown . Items . Add ( item ) ;
333337 }
334338
335- this . _gamesDropDown ! . Enabled = true ;
339+ this . _gamesDropDown . Enabled = true ;
336340 }
337341
338342 private void OnAutoDiscoverClick ( object ? sender , EventArgs e )
You can’t perform that action at this time.
0 commit comments