do not crash when Plugin.Prepare() failed

This commit is contained in:
Paddy Xu
2017-11-17 12:14:49 +02:00
parent 93dae0a8ca
commit 1980ed1590
+8 -1
View File
@@ -161,7 +161,14 @@ namespace QuickLook
ContextObject.ViewerWindow = this;
// get window size before showing it
Plugin.Prepare(path, ContextObject);
try
{
Plugin.Prepare(path, ContextObject);
}
catch (Exception e)
{
exceptionHandler(path, ExceptionDispatchInfo.Capture(e));
}
SetOpenWithButtonAndPath();