mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-07 02:00:21 +08:00
do not crash when Plugin.Prepare() failed
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user