mirror of
https://github.com/transmission/transmission
synced 2024-12-24 00:34:04 +00:00
better [6658]
This commit is contained in:
parent
89ea3c2a4e
commit
c7ace2e5ff
1 changed files with 2 additions and 2 deletions
|
@ -113,10 +113,10 @@ QuickLookController * fQuickLookInstance = nil;
|
|||
|
||||
- (void) updateQuickLook
|
||||
{
|
||||
if (!fQuickLookAvailable)
|
||||
//only update when window is open or in the middle of opening (visible)
|
||||
if (!fQuickLookAvailable || !([[QLPreviewPanel sharedPreviewPanel] isOpen] || [[QLPreviewPanel sharedPreviewPanel] isVisible]))
|
||||
return;
|
||||
|
||||
//if the user changes the selection while the panel is open then update the current items
|
||||
if (![self quickLookSelectItems])
|
||||
[[QLPreviewPanel sharedPreviewPanel] closeWithEffect: 1];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue