mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
[PTRun]Improve copying error handling on plugins (#35459)
This commit is contained in:
@@ -8,6 +8,7 @@ using System.Threading;
|
||||
using System.Windows;
|
||||
|
||||
using Wox.Plugin;
|
||||
using Wox.Plugin.Logger;
|
||||
|
||||
namespace Microsoft.PowerToys.Run.Plugin.Calculator
|
||||
{
|
||||
@@ -51,9 +52,10 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator
|
||||
Clipboard.SetText(roundedResult?.ToString(culture));
|
||||
ret = true;
|
||||
}
|
||||
catch (ExternalException)
|
||||
catch (ExternalException ex)
|
||||
{
|
||||
MessageBox.Show(Properties.Resources.wox_plugin_calculator_copy_failed);
|
||||
Log.Exception("Copy failed", ex, typeof(ResultHelper));
|
||||
MessageBox.Show(ex.Message, Properties.Resources.wox_plugin_calculator_copy_failed);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user