File tree Expand file tree Collapse file tree
Plugins/Flow.Launcher.Plugin.Program Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -444,14 +444,21 @@ public List<Result> LoadContextMenus(Result selectedResult)
444444 {
445445 _ = Task . Run ( async ( ) =>
446446 {
447- await DisableProgramAsync ( program ) ;
448- ResetCache ( ) ;
449- Context . API . ReQuery ( ) ;
447+ try
448+ {
449+ await DisableProgramAsync ( program ) ;
450+ ResetCache ( ) ;
451+ Context . API . ShowMsg (
452+ Context . API . GetTranslation ( "flowlauncher_plugin_program_disable_dlgtitle_success" ) ,
453+ Context . API . GetTranslation (
454+ "flowlauncher_plugin_program_disable_dlgtitle_success_message" ) ) ;
455+ Context . API . ReQuery ( ) ;
456+ }
457+ catch ( Exception e )
458+ {
459+ Context . API . LogException ( ClassName , "Failed to disable program" , e ) ;
460+ }
450461 } ) ;
451- Context . API . ShowMsg (
452- Context . API . GetTranslation ( "flowlauncher_plugin_program_disable_dlgtitle_success" ) ,
453- Context . API . GetTranslation (
454- "flowlauncher_plugin_program_disable_dlgtitle_success_message" ) ) ;
455462 return false ;
456463 } ,
457464 IcoPath = "Images/disable.png" ,
You can’t perform that action at this time.
0 commit comments