#import <ITMTRemote/ITMTRemote.h>
#import "MTBlingController.h"
-#define MT_CURRENT_VERSION 1510
+#define MT_CURRENT_VERSION 1520
@class StatusWindowController, MenuController, NetworkController;
- (void)applicationDidBecomeActive:(NSNotification *)note
{
- if (_open && !blinged && ![NSApp mainWindow] && ([[StatusWindow sharedWindow] exitMode] == ITTransientStatusWindowExitAfterDelay)) {
+ //This appears to not work in 10.4
+ if (_open && !blinged && ![[ITAboutBox sharedController] isVisible] && ![NSApp mainWindow] && ([[StatusWindow sharedWindow] exitMode] == ITTransientStatusWindowExitAfterDelay)) {
[[MainController sharedController] showPreferences];
}
}
#import <ITKit/ITHotKey.h>
#import <ITKit/ITKeyCombo.h>
#import <ITKit/ITCategory-NSMenu.h>
+#import <ITKit/ITAboutBox.h>
@interface MenuController (SubmenuMethods)
- (NSMenu *)ratingMenu;
keyEquivalent:@""];
[tempItem setTag:MTMenuPreferencesItem];
[tempItem setTarget:self];
- } else if ([nextObject isEqualToString:@"quit"]) {
+ } else if ([nextObject isEqualToString:@"about"]) {
+ ITDebugLog(@"Add \"About MenuTunes...\" menu item.");
+ tempItem = [menu addItemWithTitle:NSLocalizedString(@"about", @"About MenuTunes...")
+ action:@selector(performMainMenuAction:)
+ keyEquivalent:@""];
+ [tempItem setTag:MTMenuAboutItem];
+ [tempItem setTarget:self];
+ } else if ([nextObject isEqualToString:@"quit"]) {
if ([[MainController sharedController] blingBling] == NO) {
ITDebugLog(@"Add \"Register MenuTunes...\" menu item.");
tempItem = [menu addItemWithTitle:NSLocalizedString(@"register", @"Register MenuTunes...") action:@selector(performMainMenuAction:) keyEquivalent:@""];
ITDebugLog(@"Performing Menu Action: Preferences...");
[[MainController sharedController] showPreferences];
break;
+ case MTMenuAboutItem:
+ ITDebugLog(@"Performing Menu Action: About MenuTunes...");
+ [[ITAboutBox sharedController] showAboutBox];
+ break;
case MTMenuQuitItem:
ITDebugLog(@"Performing Menu Action: Quit");
[[MainController sharedController] quitMenuTunes];