Validate Minimal View menu item.

This commit is contained in:
Mitchell Livingston 2006-07-05 23:42:56 +00:00
parent 5b20e756f3
commit c17ab350eb
1 changed files with 5 additions and 4 deletions

View File

@ -1562,7 +1562,7 @@ static void sleepCallBack(void * controller, io_service_t y,
}
//enable pause item
if( action == @selector(stopTorrent:) )
if (action == @selector(stopTorrent:))
{
if (!canUseMenu)
return NO;
@ -1581,7 +1581,7 @@ static void sleepCallBack(void * controller, io_service_t y,
}
//enable resume item
if( action == @selector(resumeTorrent:) )
if (action == @selector(resumeTorrent:))
{
if (!canUseMenu)
return NO;
@ -1600,11 +1600,12 @@ static void sleepCallBack(void * controller, io_service_t y,
}
//enable sort and advanced bar items
if (action == @selector(setSort:) || (action == @selector(toggleAdvancedBar:)))
if (action == @selector(setSort:) || action == @selector(toggleAdvancedBar:)
|| action == @selector(toggleSmallView:))
return canUseMenu;
//enable copy torrent file item
if( action == @selector(copyTorrentFile:) )
if (action == @selector(copyTorrentFile:))
{
return canUseMenu && [fTableView numberOfSelectedRows] > 0;
}