mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Fix a programs bug if custom program folder is not exist.
This commit is contained in:
@@ -105,8 +105,19 @@ namespace Wox.Helper
|
||||
ThreadPool.QueueUserWorkItem(delegate
|
||||
{
|
||||
Exception exception = null;
|
||||
try { action(); }
|
||||
catch (Exception ex) { exception = ex; }
|
||||
try
|
||||
{
|
||||
action();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
exception = ex;
|
||||
#if (DEBUG)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
OnItemComplete(state, exception);
|
||||
});
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user