X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/9234efdd6caadd01f9b28637b44b7f88c42e0cec..5e4dec969868a410da088273791f228def3b36a7:/MenuController.m diff --git a/MenuController.m b/MenuController.m index 382e6f2..50ffb98 100755 --- a/MenuController.m +++ b/MenuController.m @@ -740,9 +740,9 @@ if (source == ITMTRemoteRadioSource) { [playlistsMenu addItem:[NSMenuItem separatorItem]]; [[playlistsMenu addItemWithTitle:NSLocalizedString(@"radio", @"Radio") action:@selector(performPlaylistMenuAction:) keyEquivalent:@""] setState:NSOnState]; - } - } else { - [playlistsMenu addItem:[NSMenuItem separatorItem]]; + } else if ([playlists count] > 2) { + [playlistsMenu addItem:[NSMenuItem separatorItem]]; + } } //Add other sources as needed (shared music, iPods, CDs) @@ -773,7 +773,7 @@ [tempItem setState:NSOnState]; [[[tempItem submenu] itemAtIndex:_currentPlaylist - 1] setState:NSOnState]; } else if (source == ITMTRemoteLibrarySource && _currentPlaylist) { - [[playlistsMenu itemAtIndex:_currentPlaylist - 1] setState:NSOnState]; + [[playlistsMenu itemAtIndex:_currentPlaylist - 2] setState:NSOnState]; } } NS_HANDLER