mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-08 03:06:29 +08:00
Fix #162: switch preview when calling from command-line
This commit is contained in:
@@ -75,7 +75,7 @@ namespace QuickLook
|
||||
|
||||
public void TogglePreview(string path)
|
||||
{
|
||||
if (_viewerWindow.Visibility == Visibility.Visible)
|
||||
if (_viewerWindow.Visibility == Visibility.Visible && path == _invokedPath)
|
||||
ClosePreview();
|
||||
else
|
||||
InvokePreview(path);
|
||||
@@ -95,6 +95,8 @@ namespace QuickLook
|
||||
{
|
||||
StopFocusMonitor();
|
||||
|
||||
_viewerWindow.Pinned = true;
|
||||
|
||||
var newWindow = new ViewerWindow
|
||||
{
|
||||
Top = _viewerWindow.Top,
|
||||
|
||||
Reference in New Issue
Block a user