mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-25 02:00:12 +08:00
fix: window not closing when pressing Spacebar while having focus
This commit is contained in:
@@ -75,7 +75,7 @@ namespace QuickLook
|
||||
|
||||
public void TogglePreview(string path)
|
||||
{
|
||||
if (_viewerWindow.Visibility == Visibility.Visible && path == _invokedPath)
|
||||
if (_viewerWindow.Visibility == Visibility.Visible && (string.IsNullOrEmpty(path) || path == _invokedPath))
|
||||
ClosePreview();
|
||||
else
|
||||
InvokePreview(path);
|
||||
|
||||
Reference in New Issue
Block a user