Skip to content

Commit 354bbfc

Browse files
committed
fix crash
1 parent 4133d21 commit 354bbfc

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

QuickLook.Plugin/QuickLook.Plugin.IPreviewHandlers/PreviewPanel.xaml.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,9 @@ public void Dispose()
5050

5151
public void PreviewFile(string file, ContextObject context)
5252
{
53-
Application.Current.Dispatcher.BeginInvoke(new Action(() =>
54-
{
55-
_control = new PreviewHandlerHost();
56-
presenter.Child = _control;
57-
_control.Open(file);
58-
}), DispatcherPriority.Loaded);
53+
_control = new PreviewHandlerHost();
54+
presenter.Child = _control;
55+
_control.Open(file);
5956

6057
//SetForegroundWindow(new WindowInteropHelper(context.ViewerWindow).Handle);
6158
//SetActiveWindow(presenter.Handle);

0 commit comments

Comments
 (0)