mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-24 02:00:55 +08:00
Revert "Async call sometimes crash because NullReferenceException at <BeginShow>b__0()"
This reverts commit b0e4f19491.
This commit is contained in:
@@ -192,15 +192,19 @@ namespace QuickLook
|
||||
ShowWindowCaptionContainer(null, null);
|
||||
//WindowHelper.SetActivate(new WindowInteropHelper(this), ContextObject.CanFocus);
|
||||
|
||||
// load plugin, sync
|
||||
try
|
||||
{
|
||||
Plugin.View(path, ContextObject);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
exceptionHandler(path, ExceptionDispatchInfo.Capture(e));
|
||||
}
|
||||
// load plugin, do not block UI
|
||||
Dispatcher.BeginInvoke(new Action(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
Plugin.View(path, ContextObject);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
exceptionHandler(path, ExceptionDispatchInfo.Capture(e));
|
||||
}
|
||||
}),
|
||||
DispatcherPriority.Input);
|
||||
}
|
||||
|
||||
private void SetOpenWithButtonAndPath()
|
||||
|
||||
Reference in New Issue
Block a user