@@ -341,7 +341,7 @@ await DownloadFileAsync(
341
341
}
342
342
else
343
343
{
344
- PluginManager . UpdatePlugin ( x . PluginExistingMetadata , x . PluginNewUserPlugin ,
344
+ await PluginManager . UpdatePluginAsync ( x . PluginExistingMetadata , x . PluginNewUserPlugin ,
345
345
downloadToFilePath ) ;
346
346
347
347
if ( Settings . AutoRestartAfterChanging )
@@ -433,7 +433,7 @@ await DownloadFileAsync(
433
433
if ( cts . IsCancellationRequested )
434
434
return ;
435
435
else
436
- PluginManager . UpdatePlugin ( plugin . PluginExistingMetadata , plugin . PluginNewUserPlugin ,
436
+ await PluginManager . UpdatePluginAsync ( plugin . PluginExistingMetadata , plugin . PluginNewUserPlugin ,
437
437
downloadToFilePath ) ;
438
438
}
439
439
catch ( Exception ex )
@@ -681,7 +681,7 @@ internal List<Result> RequestUninstall(string search)
681
681
Title = $ "{ x . Metadata . Name } by { x . Metadata . Author } ",
682
682
SubTitle = x . Metadata . Description ,
683
683
IcoPath = x . Metadata . IcoPath ,
684
- Action = e =>
684
+ AsyncAction = async e =>
685
685
{
686
686
string message ;
687
687
if ( Settings . AutoRestartAfterChanging )
@@ -704,7 +704,7 @@ internal List<Result> RequestUninstall(string search)
704
704
MessageBoxButton . YesNo ) == MessageBoxResult . Yes )
705
705
{
706
706
Context . API . HideMainWindow ( ) ;
707
- Uninstall ( x . Metadata ) ;
707
+ await UninstallAsync ( x . Metadata ) ;
708
708
if ( Settings . AutoRestartAfterChanging )
709
709
{
710
710
Context . API . RestartApp ( ) ;
@@ -729,15 +729,15 @@ internal List<Result> RequestUninstall(string search)
729
729
return Search ( results , search ) ;
730
730
}
731
731
732
- private void Uninstall ( PluginMetadata plugin )
732
+ private async Task UninstallAsync ( PluginMetadata plugin )
733
733
{
734
734
try
735
735
{
736
736
var removePluginSettings = Context . API . ShowMsgBox (
737
737
Context . API . GetTranslation ( "plugin_pluginsmanager_keep_plugin_settings_subtitle" ) ,
738
738
Context . API . GetTranslation ( "plugin_pluginsmanager_keep_plugin_settings_title" ) ,
739
739
button : MessageBoxButton . YesNo ) == MessageBoxResult . No ;
740
- PluginManager . UninstallPlugin ( plugin , removePluginFromSettings : true , removePluginSettings : removePluginSettings ) ;
740
+ await PluginManager . UninstallPluginAsync ( plugin , removePluginFromSettings : true , removePluginSettings : removePluginSettings ) ;
741
741
}
742
742
catch ( ArgumentException e )
743
743
{
0 commit comments