X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/6f3e95b38759c72706e83ff140ae17667cdfad22..20af5f03f5ceee5561784d17bd1456ae56fee6e3:/MainController.m diff --git a/MainController.m b/MainController.m index cfc9518..c0bec8e 100755 --- a/MainController.m +++ b/MainController.m @@ -1028,6 +1028,13 @@ static MainController *sharedController; int rating = -1; int playCount = -1; + //If we're already visible and the setting says so, vanish instead of displaying again. + if ([[StatusWindowController sharedController] currentStatusWindowType] == StatusWindowTrackInfoType && [[StatusWindow sharedWindow] visibilityState] == ITWindowVisibleState) { + [self invalidateStatusWindowUpdateTimer]; + [[StatusWindow sharedWindow] vanish:nil]; + return; + } + ITDebugLog(@"Showing track info status window."); NS_DURING