mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-20 02:19:57 +08:00
Fix #521 again: the same for arrow keys
This commit is contained in:
@@ -107,15 +107,15 @@ namespace QuickLook
|
|||||||
|
|
||||||
public void SwitchPreview(string path = null)
|
public void SwitchPreview(string path = null)
|
||||||
{
|
{
|
||||||
|
if (_viewerWindow.Visibility != Visibility.Visible)
|
||||||
|
return;
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(path))
|
if (string.IsNullOrEmpty(path))
|
||||||
path = NativeMethods.QuickLook.GetCurrentSelection();
|
path = NativeMethods.QuickLook.GetCurrentSelection();
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(path))
|
if (string.IsNullOrEmpty(path))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (_viewerWindow.Visibility != Visibility.Visible)
|
|
||||||
return;
|
|
||||||
|
|
||||||
InvokePreview(path);
|
InvokePreview(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user