@@ -844,6 +844,11 @@ async Task CallGetUnityUpdates()
844
844
updatesSource = items . ToArray ( ) ;
845
845
if ( updatesSource == null ) return ;
846
846
dataGridUpdates . ItemsSource = updatesSource ;
847
+ // if search string is set, then filter it (after data is loaded)
848
+ if ( string . IsNullOrEmpty ( txtSearchBoxUpdates . Text ) == false )
849
+ {
850
+ FilterUpdates ( ) ;
851
+ }
847
852
}
848
853
849
854
async void GoLookForUpdatesForThisUnity ( )
@@ -857,7 +862,10 @@ async void GoLookForUpdatesForThisUnity()
857
862
if ( dataGridUpdates . ItemsSource != null )
858
863
{
859
864
tabControl . SelectedIndex = 2 ;
860
- txtSearchBoxUpdates . Text = "" ; // need to clear old results first
865
+ // need to clear old results first
866
+ txtSearchBoxUpdates . Text = "" ;
867
+ // reset filter
868
+ rdoAll . IsChecked = true ;
861
869
862
870
// NOTE for now, just set filter to current version, minus patch version "2021.1.7f1" > "2021.1"
863
871
txtSearchBoxUpdates . Text = unity . Version . Substring ( 0 , unity . Version . LastIndexOf ( '.' ) ) ;
@@ -1168,6 +1176,11 @@ private async void OnTabSelectionChanged(object sender, SelectionChangedEventArg
1168
1176
updatesSource = items . ToArray ( ) ;
1169
1177
if ( updatesSource == null ) return ;
1170
1178
dataGridUpdates . ItemsSource = updatesSource ;
1179
+ // if search string is set, then filter it (after data is loaded)
1180
+ if ( string . IsNullOrEmpty ( txtSearchBoxUpdates . Text ) == false )
1181
+ {
1182
+ FilterUpdates ( ) ;
1183
+ }
1171
1184
}
1172
1185
}
1173
1186
}
0 commit comments