X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/9fe0abc58552c65940750163388179a2966eb59e..e8516aa003a65e030ec6f7c4007ed04efa351477:/PreferencesController.m?ds=inline diff --git a/PreferencesController.m b/PreferencesController.m index 4281817..a7c909e 100755 --- a/PreferencesController.m +++ b/PreferencesController.m @@ -1,5 +1,5 @@ #import "PreferencesController.h" -#import "NewMainController.h" +#import "MainController.h" #import "HotKeyCenter.h" #import @@ -85,6 +85,10 @@ static PreferencesController *prefs = nil; [self setupMenuItems]; // Setup the arrays of menu items [self setupUI]; // Sets up additional UI [window setDelegate:self]; + [menuTableView reloadData]; + + //Change the launch player checkbox to the proper name + [launchPlayerAtLaunchCheckbox setTitle:[NSString stringWithFormat:@"Launch %@ when MenuTunes launches", [[controller currentRemote] playerSimpleName]]]; //This isn't localized... } [window setLevel:NSStatusWindowLevel]; @@ -630,7 +634,7 @@ static PreferencesController *prefs = nil; if ( flag ) { NSMutableDictionary *loginwindow; NSMutableArray *loginarray; - ComponentInstance temp = OpenDefaultComponent(kOSAComponentType, kAppleScriptSubtype);; + ComponentInstance temp = OpenDefaultComponent(kOSAComponentType, kAppleScriptSubtype); int i; BOOL skip = NO; @@ -764,6 +768,7 @@ static PreferencesController *prefs = nil; dragData = [pb stringForType:@"MenuTableViewPboardType"]; dragRow = [dragData intValue]; temp = [myItems objectAtIndex:dragRow]; + if (tableView == menuTableView) { [myItems insertObject:temp atIndex:row]; if (row > dragRow) { @@ -774,8 +779,8 @@ static PreferencesController *prefs = nil; } else { if (![temp isEqualToString:@"separator"]) { [availableItems addObject:temp]; - [myItems removeObjectAtIndex:dragRow]; } + [myItems removeObjectAtIndex:dragRow]; } } else if ([[pb types] containsObject:@"AllTableViewPboardType"]) { dragData = [pb stringForType:@"AllTableViewPboardType"];