Fix #521 again: the same for arrow keys

This commit is contained in:
Paddy Xu
2019-09-23 20:26:27 +03:00
parent 1d83cd8dd0
commit 8549f24d0a

View File

@@ -107,15 +107,15 @@ namespace QuickLook
public void SwitchPreview(string path = null)
{
if (_viewerWindow.Visibility != Visibility.Visible)
return;
if (string.IsNullOrEmpty(path))
path = NativeMethods.QuickLook.GetCurrentSelection();
if (string.IsNullOrEmpty(path))
return;
if (_viewerWindow.Visibility != Visibility.Visible)
return;
InvokePreview(path);
}