File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -425,10 +425,14 @@ private void RestoreUI()
425425 item2 . Width = new DataGridLength ( item . Width , DataGridLengthUnitType . Pixel ) ;
426426 item2 . DisplayIndex = displayIndex ++ ;
427427 }
428- if ( item . Name . ToLower ( ) . StartsWith ( "to" ) )
428+ if ( item . Name . StartsWith ( "to" , StringComparison . CurrentCultureIgnoreCase ) )
429429 {
430430 item2 . IsVisible = _config . GuiItem . EnableStatistics ;
431431 }
432+ if ( item . Name . Equals ( "IpInfo" , StringComparison . CurrentCultureIgnoreCase ) )
433+ {
434+ item2 . IsVisible = _config . SpeedTestItem . IPAPIUrl . IsNotEmpty ( ) ;
435+ }
432436 }
433437 }
434438 }
Original file line number Diff line number Diff line change @@ -378,10 +378,14 @@ private void RestoreUI()
378378 item2 . Width = item . Width ;
379379 item2 . DisplayIndex = displayIndex ++ ;
380380 }
381- if ( item . Name . ToLower ( ) . StartsWith ( "to" ) )
381+ if ( item . Name . StartsWith ( "to" , StringComparison . CurrentCultureIgnoreCase ) )
382382 {
383383 item2 . Visibility = _config . GuiItem . EnableStatistics ? Visibility . Visible : Visibility . Hidden ;
384384 }
385+ if ( item . Name . Equals ( "IpInfo" , StringComparison . CurrentCultureIgnoreCase ) )
386+ {
387+ item2 . Visibility = _config . SpeedTestItem . IPAPIUrl . IsNotEmpty ( ) ? Visibility . Visible : Visibility . Hidden ;
388+ }
385389 }
386390 }
387391 }
You can’t perform that action at this time.
0 commit comments