From: Kent Sutherland Date: Fri, 2 Jul 2004 05:40:17 +0000 (+0000) Subject: Individual song rating setting by hotkey actually works now. I'm an idiot. X-Git-Tag: v1.4~24 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/79a47ef87af186c7a8e48ae9b99922cb1cb72512 Individual song rating setting by hotkey actually works now. I'm an idiot. --- diff --git a/MainController.m b/MainController.m index 7c60fb0..73a8146 100755 --- a/MainController.m +++ b/MainController.m @@ -1099,9 +1099,9 @@ static MainController *sharedController; - (void)setRating:(ITHotKey *)sender { - float rating = ([[sender name] characterAtIndex:9] - 48) / 5.0; - [self selectSongRating:rating]; - [statusWindowController showRatingWindowWithRating:rating]; + int stars = [[sender name] characterAtIndex:9] - 48; + [self selectSongRating:stars * 20]; + [statusWindowController showRatingWindowWithRating:(float)stars / 5.0]; } - (void)toggleLoop