mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
parent
b80e9bd8c2
commit
e678f7c5f5
1 changed files with 4 additions and 3 deletions
|
@ -3875,6 +3875,7 @@ static void removeKeRangerRansomware()
|
||||||
- (void)endPreviewPanelControl:(QLPreviewPanel*)panel
|
- (void)endPreviewPanelControl:(QLPreviewPanel*)panel
|
||||||
{
|
{
|
||||||
self.fPreviewPanel = nil;
|
self.fPreviewPanel = nil;
|
||||||
|
[self.fWindow.toolbar validateVisibleItems];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSArray*)quickLookableTorrents
|
- (NSArray*)quickLookableTorrents
|
||||||
|
@ -4365,8 +4366,8 @@ static void removeKeRangerRansomware()
|
||||||
//set quick look item
|
//set quick look item
|
||||||
if ([ident isEqualToString:TOOLBAR_QUICKLOOK])
|
if ([ident isEqualToString:TOOLBAR_QUICKLOOK])
|
||||||
{
|
{
|
||||||
((NSButton*)toolbarItem.view).state = [QLPreviewPanel sharedPreviewPanelExists] && [QLPreviewPanel sharedPreviewPanel].visible;
|
((NSButton*)toolbarItem.view).state = self.fPreviewPanel != nil;
|
||||||
return YES;
|
return self.fTableView.numberOfSelectedRows > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//enable share item
|
//enable share item
|
||||||
|
@ -4780,7 +4781,7 @@ static void removeKeRangerRansomware()
|
||||||
NSLocalizedString(@"Close Quick Look", "View menu -> Quick Look");
|
NSLocalizedString(@"Close Quick Look", "View menu -> Quick Look");
|
||||||
menuItem.title = title;
|
menuItem.title = title;
|
||||||
|
|
||||||
return YES;
|
return self.fTableView.numberOfSelectedRows > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return YES;
|
return YES;
|
||||||
|
|
Loading…
Reference in a new issue