withLength:NSSquareStatusItemLength];
}
- bling = [[MTBlingController alloc] init];
+ /*bling = [[MTBlingController alloc] init];
[self blingTime];
registerTimer = [[NSTimer scheduledTimerWithTimeInterval:10.0
target:self
selector:@selector(blingTime)
userInfo:nil
- repeats:YES] retain];
+ repeats:YES] retain];*/
NS_DURING
if ([[self currentRemote] playerRunningState] == ITMTRemotePlayerRunning) {
[networkController startRemoteServerSearch];
[NSApp deactivate];
[self performSelector:@selector(rawr) withObject:nil afterDelay:1.0];
+
+ bling = [[MTBlingController alloc] init];
+ [self blingTime];
+ registerTimer = [[NSTimer scheduledTimerWithTimeInterval:10.0
+ target:self
+ selector:@selector(blingTime)
+ userInfo:nil
+ repeats:YES] retain];
}
- (void)rawr
_open = YES;
}
-- (void)applicationWillBecomeActive:(NSNotification *)note
+- (void)applicationDidBecomeActive:(NSNotification *)note
{
- if (_open) {
+ if (_open && !blinged && ![NSApp mainWindow] && ![[StatusWindow sharedWindow] isVisible]) {
[[MainController sharedController] showPreferences];
}
}
if ( ([now timeIntervalSinceDate:[self getBlingTime]] >= 604800) && (blinged != YES) ) {
blinged = YES;
[statusItem setEnabled:NO];
- [self clearHotKeys];
+ [[ITHotKeyCenter sharedCenter] setEnabled:NO];
if ([refreshTimer isValid]) {
[refreshTimer invalidate];
[refreshTimer release];
} else {
if (blinged) {
[statusItem setEnabled:YES];
- [self setupHotKeys];
+ [[ITHotKeyCenter sharedCenter] setEnabled:YES];
if (![refreshTimer isValid]) {
[refreshTimer release];
refreshTimer = [[NSTimer scheduledTimerWithTimeInterval:([networkController isConnectedToServer] ? 10.0 : 0.5)