mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-24 02:00:55 +08:00
fix crash
This commit is contained in:
@@ -50,12 +50,9 @@ namespace QuickLook.Plugin.IPreviewHandlers
|
||||
|
||||
public void PreviewFile(string file, ContextObject context)
|
||||
{
|
||||
Application.Current.Dispatcher.BeginInvoke(new Action(() =>
|
||||
{
|
||||
_control = new PreviewHandlerHost();
|
||||
presenter.Child = _control;
|
||||
_control.Open(file);
|
||||
}), DispatcherPriority.Loaded);
|
||||
_control = new PreviewHandlerHost();
|
||||
presenter.Child = _control;
|
||||
_control.Open(file);
|
||||
|
||||
//SetForegroundWindow(new WindowInteropHelper(context.ViewerWindow).Handle);
|
||||
//SetActiveWindow(presenter.Handle);
|
||||
|
||||
Reference in New Issue
Block a user