mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
remove quicklook animation when the table disappears
This commit is contained in:
parent
1fb597f1ba
commit
bb3f77d2cd
1 changed files with 5 additions and 5 deletions
|
@ -84,7 +84,7 @@ typedef enum
|
|||
if (fQuickLookAvailable)
|
||||
{
|
||||
if ([[QLPreviewPanel sharedPreviewPanel] isOpen])
|
||||
[[QLPreviewPanel sharedPreviewPanel] closeWithEffect: 1];
|
||||
[[QLPreviewPanel sharedPreviewPanel] closeWithEffect: 0];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ typedef enum
|
|||
// If an empty frame is returned then the panel will fade in/out instead
|
||||
- (NSRect) previewPanel: (NSPanel *) panel frameForURL: (NSURL *) url
|
||||
{
|
||||
NSRect frame = NSMakeRect(0, 0, 0, 0);
|
||||
NSRect frame = NSZeroRect;
|
||||
int row = [self visibleRowWithURL: url];
|
||||
|
||||
if (row != -1)
|
||||
|
|
Loading…
Reference in a new issue