mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-19 23:24:52 +00:00
Fix a error msg upon closing Excel preview window
This commit is contained in:
@@ -20,11 +20,14 @@ namespace QuickLook.Plugin.IPreviewHandlers
|
|||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
presenter.Child = null;
|
Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() =>
|
||||||
presenter?.Dispose();
|
{
|
||||||
|
presenter.Child = null;
|
||||||
|
presenter?.Dispose();
|
||||||
|
|
||||||
_control?.Dispose();
|
_control?.Dispose();
|
||||||
_control = null;
|
_control = null;
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PreviewFile(string file, ContextObject context)
|
public void PreviewFile(string file, ContextObject context)
|
||||||
|
Reference in New Issue
Block a user