git.ithinksw.org
/
MenuTunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d0f7f08
)
Added another timeout check.
author
Kent Sutherland
<ksuther@ithinksw.com>
Sun, 12 Sep 2004 02:51:58 +0000
(
02:51
+0000)
committer
Kent Sutherland
<ksuther@ithinksw.com>
Sun, 12 Sep 2004 02:51:58 +0000
(
02:51
+0000)
MainController.m
patch
|
blob
|
history
diff --git
a/MainController.m
b/MainController.m
index
157b97a
..
da07757
100755
(executable)
--- a/
MainController.m
+++ b/
MainController.m
@@
-372,7
+372,7
@@
static MainController *sharedController;
}
if ( [self songChanged] && (timerUpdating != YES) && (playerRunningState == ITMTRemotePlayerRunning) ) {
}
if ( [self songChanged] && (timerUpdating != YES) && (playerRunningState == ITMTRemotePlayerRunning) ) {
- ITDebugLog(@"The song changed.
"
);
+ ITDebugLog(@"The song changed.
'%@'", _latestSongIdentifier
);
if ([df boolForKey:@"runScripts"]) {
NSArray *scripts = [[NSFileManager defaultManager] directoryContentsAtPath:[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Application Support/MenuTunes/Scripts"]];
NSEnumerator *scriptsEnum = [scripts objectEnumerator];
if ([df boolForKey:@"runScripts"]) {
NSArray *scripts = [[NSFileManager defaultManager] directoryContentsAtPath:[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Application Support/MenuTunes/Scripts"]];
NSEnumerator *scriptsEnum = [scripts objectEnumerator];
@@
-434,6
+434,21
@@
static MainController *sharedController;
- (void)menuClicked
{
ITDebugLog(@"Menu clicked.");
- (void)menuClicked
{
ITDebugLog(@"Menu clicked.");
+
+ if ([[self currentRemote] playerStateUniqueIdentifier] == nil) {
+ if ([statusItem isEnabled]) {
+ [statusItem setToolTip:@"iTunes not responding."];
+ [self clearHotKeys];
+ }
+ [statusItem setEnabled:NO];
+ return;
+ } else if (![statusItem isEnabled]) {
+ [statusItem setEnabled:YES];
+ [statusItem setToolTip:_toolTip];
+ [self setupHotKeys];
+ return;
+ }
+
if ([networkController isConnectedToServer]) {
//Used the cached version
return;
if ([networkController isConnectedToServer]) {
//Used the cached version
return;