@@ -324,7 +324,7 @@ await Http.DownloadAsync(x.PluginNewUserPlugin.UrlDownload, downloadToFilePath)
324
324
string . Format (
325
325
Context . API . GetTranslation ( "plugin_pluginsmanager_install_error_subtitle" ) ,
326
326
x . Name ) ) ;
327
- } , TaskContinuationOptions . OnlyOnFaulted ) ;
327
+ } , token , TaskContinuationOptions . OnlyOnFaulted , TaskScheduler . Default ) ;
328
328
329
329
return true ;
330
330
} ,
@@ -337,7 +337,7 @@ await Http.DownloadAsync(x.PluginNewUserPlugin.UrlDownload, downloadToFilePath)
337
337
} ) ;
338
338
339
339
// Update all result
340
- if ( resultsForUpdate . Count ( ) > 1 )
340
+ if ( resultsForUpdate . Count > 1 )
341
341
{
342
342
var updateAllResult = new Result
343
343
{
@@ -351,13 +351,13 @@ await Http.DownloadAsync(x.PluginNewUserPlugin.UrlDownload, downloadToFilePath)
351
351
{
352
352
message = string . Format (
353
353
Context . API . GetTranslation ( "plugin_pluginsmanager_update_all_prompt" ) ,
354
- resultsForUpdate . Count ( ) , Environment . NewLine ) ;
354
+ resultsForUpdate . Count , Environment . NewLine ) ;
355
355
}
356
356
else
357
357
{
358
358
message = string . Format (
359
359
Context . API . GetTranslation ( "plugin_pluginsmanager_update_all_prompt_no_restart" ) ,
360
- resultsForUpdate . Count ( ) ) ;
360
+ resultsForUpdate . Count ) ;
361
361
}
362
362
363
363
if ( Context . API . ShowMsgBox ( message ,
@@ -401,15 +401,15 @@ await Http.DownloadAsync(plugin.PluginNewUserPlugin.UrlDownload, downloadToFileP
401
401
Context . API . ShowMsg ( Context . API . GetTranslation ( "plugin_pluginsmanager_update_title" ) ,
402
402
string . Format (
403
403
Context . API . GetTranslation ( "plugin_pluginsmanager_update_all_success_restart" ) ,
404
- resultsForUpdate . Count ( ) ) ) ;
404
+ resultsForUpdate . Count ) ) ;
405
405
Context . API . RestartApp ( ) ;
406
406
}
407
407
else
408
408
{
409
409
Context . API . ShowMsg ( Context . API . GetTranslation ( "plugin_pluginsmanager_update_title" ) ,
410
410
string . Format (
411
411
Context . API . GetTranslation ( "plugin_pluginsmanager_update_all_success_no_restart" ) ,
412
- resultsForUpdate . Count ( ) ) ) ;
412
+ resultsForUpdate . Count ) ) ;
413
413
}
414
414
415
415
return true ;
@@ -545,7 +545,7 @@ private bool InstallSourceKnown(string url)
545
545
Context . API . GetAllPlugins ( ) . Any ( x => x . Metadata . Website . StartsWith ( constructedUrlPart ) ) ;
546
546
}
547
547
548
- internal async ValueTask < List < Result > > RequestInstallOrUpdate ( string search , CancellationToken token ,
548
+ internal async ValueTask < List < Result > > RequestInstallOrUpdateAsync ( string search , CancellationToken token ,
549
549
bool usePrimaryUrlOnly = false )
550
550
{
551
551
await PluginsManifest . UpdateManifestAsync ( token , usePrimaryUrlOnly ) ;
0 commit comments