X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/f41e707acd7a88f6e5ec68df27ebeca2498293b4..154ddd8b39891b174082df48f504f83d0a6a22d9:/PreferencesController.m diff --git a/PreferencesController.m b/PreferencesController.m index 3919848..1aee038 100755 --- a/PreferencesController.m +++ b/PreferencesController.m @@ -192,6 +192,7 @@ static PreferencesController *prefs = nil; NS_ENDHANDLER } + [self resetRemotePlayerTextFields]; [window center]; [NSApp activateIgnoringOtherApps:YES]; [window performSelector:@selector(makeKeyAndOrderFront:) withObject:self afterDelay:0.0]; @@ -244,6 +245,7 @@ static PreferencesController *prefs = nil; [controller setServerStatus:state]; //Set server status } else if ( [sender tag] == 5015 ) { [df setObject:[sender stringValue] forKey:@"sharedPlayerName"]; + [[NetworkController sharedController] resetServerName]; } else if ( [sender tag] == 5020 ) { [df setBool:SENDER_STATE forKey:@"enableSharingPassword"]; } else if ( [sender tag] == 5030 ) { @@ -384,7 +386,7 @@ static PreferencesController *prefs = nil; BOOL entryEffectValid = YES; BOOL exitEffectValid = YES; - + [df setInteger:[sender selectedRow] forKey:@"statusWindowVerticalPosition"]; [df setInteger:[sender selectedColumn] forKey:@"statusWindowHorizontalPosition"]; [sw setVerticalPosition:[sender selectedRow]]; @@ -416,8 +418,7 @@ static PreferencesController *prefs = nil; [vanishEffectPopup selectItemAtIndex:[[vanishEffectPopup menu] indexOfItemWithRepresentedObject:[[sw exitEffect] class]]]; } - // Update the window's position. - // Yeah, do that. + [(MainController *)controller showCurrentTrackInfo]; } else if ( [sender tag] == 2020) { @@ -485,8 +486,8 @@ static PreferencesController *prefs = nil; } } else if ( [sender tag] == 2095) { - [sw vanish:self]; [df setInteger:[sender indexOfSelectedItem] forKey:@"statusWindowSizing"]; + [(MainController *)controller showCurrentTrackInfo]; } [df synchronize];