X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/0263903122cd22aefa9620a9497d5f58e332effb..68dfd7431d482d1958c5d8371c4fd494b1356d84:/PreferencesController.m?ds=sidebyside diff --git a/PreferencesController.m b/PreferencesController.m index 67cdd56..c962b52 100755 --- a/PreferencesController.m +++ b/PreferencesController.m @@ -236,6 +236,8 @@ static PreferencesController *prefs = nil; [df setBool:SENDER_STATE forKey:@"showTrackRating"]; } else if ( [sender tag] == 1100) { [df setBool:SENDER_STATE forKey:@"showAlbumArtwork"]; + } else if ( [sender tag] == 1105) { + [df setBool:SENDER_STATE forKey:@"showToolTip"]; } else if ( [sender tag] == 1110) { [df setBool:SENDER_STATE forKey:@"runScripts"]; if (SENDER_STATE) { @@ -536,10 +538,11 @@ static PreferencesController *prefs = nil; @"quit", nil] forKey:@"menu"]; - [df setInteger:1200 forKey:@"appVersion"]; + [df setInteger:MT_CURRENT_VERSION forKey:@"appVersion"]; [df setInteger:5 forKey:@"SongsInAdvance"]; // [df setBool:YES forKey:@"showName"]; // Song info will always show song title. [df setBool:YES forKey:@"showArtist"]; + [df setBool:YES forKey:@"showAlbumArtwork"]; [df setBool:NO forKey:@"showAlbum"]; [df setBool:NO forKey:@"showTime"]; @@ -769,6 +772,8 @@ static PreferencesController *prefs = nil; int selectedBGStyle; id anItem; + [df setInteger:MT_CURRENT_VERSION forKey:@"appVersion"]; + ITDebugLog(@"Setting up preferences UI."); // Fill in the number of songs in advance to show field [songsInAdvance setIntValue:[df integerForKey:@"SongsInAdvance"]]; @@ -796,6 +801,8 @@ static PreferencesController *prefs = nil; [ratingCheckbox setState:[df boolForKey:@"showTrackRating"] ? NSOnState : NSOffState]; [albumArtworkCheckbox setState:[df boolForKey:@"showAlbumArtwork"] ? NSOnState : NSOffState]; + [showToolTipCheckbox setState:[df boolForKey:@"showToolTip"] ? NSOnState : NSOffState]; + if ([df boolForKey:@"runScripts"]) { [runScriptsCheckbox setState:NSOnState]; [showScriptsButton setEnabled:YES];