mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Show a result error instead of popping up dialog
This commit is contained in:
parent
57541b351a
commit
ab7685e9ea
1 changed files with 12 additions and 1 deletions
|
|
@ -210,7 +210,18 @@ namespace Flow.Launcher.Core.Plugin
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
throw new FlowPluginException(metadata, e);
|
Result r = new()
|
||||||
|
{
|
||||||
|
Title = $"{metadata.Name}: {e.GetType().Name}",
|
||||||
|
SubTitle = "ERROR: There was an error loading this plugin!",
|
||||||
|
IcoPath = "Images\\app_error.png",
|
||||||
|
PluginDirectory = metadata.PluginDirectory,
|
||||||
|
ActionKeywordAssigned = query.ActionKeyword,
|
||||||
|
PluginID = metadata.ID,
|
||||||
|
OriginQuery = query,
|
||||||
|
Action = _ => { throw new FlowPluginException(metadata, e);}
|
||||||
|
};
|
||||||
|
results.Add(r);
|
||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue