Fix #29: stupid DOpus requires a more stupid "dopusrt.exe"... let OllyDbg fxxk it up

This commit is contained in:
Paddy Xu
2017-06-17 01:03:58 +03:00
parent bda5a38df1
commit 27afa85086
15 changed files with 2832 additions and 28 deletions
+8 -1
View File
@@ -173,8 +173,15 @@ namespace QuickLook
}
}
internal bool InvokeViewer(string path = null, bool topMost = true)
internal bool InvokeViewer(string path = null, bool topMost = true, bool closeIfSame = false)
{
if(closeIfSame)
if (_currentMainWindow.Visibility == Visibility.Visible && path == _path)
{
ClosePreview();
return false;
}
if (path != null)
_path = path;