@@ -150,7 +150,7 @@ private async void Input_TextChanging(TextChangingEventArgs eventArgs)
150150 /// <summary>
151151 /// <see cref="Btn_Restart" />
152152 /// </summary>
153- private async void Restart_Clicked ( bool force = false )
153+ private void Restart_Clicked ( bool force = false )
154154 {
155155 if ( ! Client . IsComplete && ! force ) {
156156 return ;
@@ -189,7 +189,6 @@ private async void Restart_Clicked(bool force = false)
189189 Tf_Input . EnsureFocus ( ) ;
190190 Btn_Filter . Text = "Filter" ;
191191 _inputVerifying = false ;
192- await Client . ApplyConfigAsync ( ) ;
193192 }
194193
195194 /// <summary>
@@ -303,73 +302,6 @@ await Parallel.ForEachAsync(res3, async (item, token) =>
303302
304303 }
305304
306- /*void UpdateTable(IEnumerable<SearchResultItem> res)
307- {
308- IndexColors.Clear();
309- Dt_Results.Clear();
310-
311- var resx = res as SearchResultItem[] ?? res.ToArray();
312- var rg = resx.GroupBy(r => r.Root);
313-
314- foreach (var gg in rg) {
315- int i = 0;
316-
317- foreach (var sri in gg) {
318- AddResultItemToTable(sri, i);
319- i++;
320- Tv_Results.Update();
321- }
322-
323- }
324- }*/
325-
326- /*private async void Filter_Clicked()
327- {
328- var dlFilter = new Dialog()
329- {
330- AutoSize = false,
331- Width = UI.Dim_30_Pct,
332- Height = UI.Dim_30_Pct
333- };
334- var cbCode = new CheckBox("Code");
335-
336- cbCode.Toggled += async b =>
337- {
338- if (b) {
339- return;
340- }
341-
342- var cb = new ConcurrentBag<SearchResultItem>();
343- var res = m_results.SelectMany(r => r.AllResults).Where(r => r.Url != null);
344-
345- await Parallel.ForEachAsync(res, async (item, token) =>
346- {
347- using var r = await item.Url.AllowAnyHttpStatus()
348- .OnError(x => x.ExceptionHandled = true)
349- .GetAsync(token);
350-
351- switch (r.ResponseMessage.StatusCode) {
352- case HttpStatusCode.NotFound:
353- case HttpStatusCode.UnavailableForLegalReasons:
354- case HttpStatusCode.Unauthorized:
355- return;
356- default:
357- cb.Add(item);
358- break;
359- }
360- });
361-
362- UpdateTable(cb);
363- };
364-
365- var btnOk = new Button();
366- btnOk.Clicked += () => { Application.RequestStop(); };
367-
368- dlFilter.Add(cbCode);
369- dlFilter.AddButton(btnOk);
370- Application.Run(dlFilter);
371- }*/
372-
373305 #endregion
374306
375307 private void Queue_Checked ( bool b )
0 commit comments