Added a Refresh item to the playlists menu that refreshes the submenu.
[MenuTunes.git] / MenuController.m
index 4c548c1..6f7cb03 100755 (executable)
         [[playlistsMenu itemAtIndex:_currentPlaylist - 1] setState:NSOnState];
     }
     [indices release];
+    [playlistsMenu addItem:[NSMenuItem separatorItem]];
+    [[playlistsMenu addItemWithTitle:@"Refresh" action:@selector(rebuildSubmenus) keyEquivalent:@""] setTarget:self];
     ITDebugLog(@"Done Building \"Playlists\" menu");
     return playlistsMenu;
 }