mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-10 17:29:08 +00:00
all operations pass though Pipe
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Threading;
|
||||
|
||||
@@ -36,7 +37,7 @@ namespace QuickLook.Plugin.IPreviewHandlers
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() =>
|
||||
Application.Current.Dispatcher.BeginInvoke(new Action(() =>
|
||||
{
|
||||
presenter.Child = null;
|
||||
presenter?.Dispose();
|
||||
@@ -48,7 +49,7 @@ namespace QuickLook.Plugin.IPreviewHandlers
|
||||
|
||||
public void PreviewFile(string file, ContextObject context)
|
||||
{
|
||||
Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() =>
|
||||
Application.Current.Dispatcher.BeginInvoke(new Action(() =>
|
||||
{
|
||||
_control = new PreviewHandlerHost();
|
||||
presenter.Child = _control;
|
||||
|
Reference in New Issue
Block a user