X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/1527a78c2e1b1cc525a5c4621077844989aab6fd..77fcca750711207d8a493d227f61bf6b6fc5ecc1:/MainController.m diff --git a/MainController.m b/MainController.m index 2517c39..7c60fb0 100755 --- a/MainController.m +++ b/MainController.m @@ -930,7 +930,7 @@ static MainController *sharedController; } } - if ( [df boolForKey:@"showPlayCount"] ) { + if ( [df boolForKey:@"showPlayCount"] && ![self radioIsPlaying] ) { NS_DURING playCount = [[self currentRemote] currentSongPlayCount]; NS_HANDLER @@ -991,8 +991,12 @@ static MainController *sharedController; - (void)popupMenu { - NSMenu *menu = [menuController menu]; - [(NSCarbonMenuImpl *)[menu _menuImpl] popUpMenu:menu atLocation:[NSEvent mouseLocation] width:1 forView:nil withSelectedItem:-30 withFont:[NSFont menuFontOfSize:32]]; + if (!_popped) { + NSMenu *menu = [menuController menu]; + _popped = YES; + [(NSCarbonMenuImpl *)[menu _menuImpl] popUpMenu:menu atLocation:[NSEvent mouseLocation] width:1 forView:nil withSelectedItem:-30 withFont:[NSFont menuFontOfSize:32]]; + _popped = NO; + } } - (void)incrementVolume