From fcb00db7d1d8f99fa5404ca11197ad0cc0f89fb6 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Mon, 10 Mar 2003 23:35:22 +0000 Subject: [PATCH] Fixed some other problems that had to do with the EQ menu --- MenuTunes.m | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/MenuTunes.m b/MenuTunes.m index 145f702..2f3b083 100755 --- a/MenuTunes.m +++ b/MenuTunes.m @@ -1,12 +1,3 @@ -/* -Things to do: -¥ Make preferences window pretty -¥ Optimize -¥ Apple Events! Apple Events! Apple Events! -¥ Manual and webpage -¥ Finish up registration frontend -*/ - #import "MenuTunes.h" #import "PreferencesController.h" #import "HotKeyCenter.h" @@ -549,7 +540,7 @@ Things to do: } [eqItem setSubmenu:eqMenu]; - [[eqMenu itemAtIndex:[currentRemote currentEQPresetIndex] - 1] setState:NSOnState]; + [[eqMenu itemAtIndex:[currentRemote currentEQPresetIndex] + 1] setState:NSOnState]; } - (void)clearHotKeys @@ -713,7 +704,12 @@ Things to do: refreshTimer = [NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(timerUpdate) userInfo:nil repeats:YES]; [self rebuildMenu]; //Rebuild the menu since no songs will be playing - [self rebuildPlaylistMenu]; + if (playlistItem) { + [self rebuildPlaylistMenu]; + } + if (eqItem) { + [self rebuildEQPresetsMenu]; + } [statusItem setMenu:menu]; //Set the menu back to the main one } -- 2.20.1