mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-19 15:15:13 +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()
|
||||
{
|
||||
presenter.Child = null;
|
||||
presenter?.Dispose();
|
||||
Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() =>
|
||||
{
|
||||
presenter.Child = null;
|
||||
presenter?.Dispose();
|
||||
|
||||
_control?.Dispose();
|
||||
_control = null;
|
||||
_control?.Dispose();
|
||||
_control = null;
|
||||
}));
|
||||
}
|
||||
|
||||
public void PreviewFile(string file, ContextObject context)
|
||||
|
Reference in New Issue
Block a user