1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 18:18:10 +00:00

remove quicklook animation when the table disappears

This commit is contained in:
Mitchell Livingston 2008-05-20 20:38:14 +00:00
parent 1fb597f1ba
commit bb3f77d2cd

View file

@ -84,7 +84,7 @@ typedef enum
if (fQuickLookAvailable) if (fQuickLookAvailable)
{ {
if ([[QLPreviewPanel sharedPreviewPanel] isOpen]) 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 // If an empty frame is returned then the panel will fade in/out instead
- (NSRect) previewPanel: (NSPanel *) panel frameForURL: (NSURL *) url - (NSRect) previewPanel: (NSPanel *) panel frameForURL: (NSURL *) url
{ {
NSRect frame = NSMakeRect(0, 0, 0, 0); NSRect frame = NSZeroRect;
int row = [self visibleRowWithURL: url]; int row = [self visibleRowWithURL: url];
if (row != -1) if (row != -1)