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 (from parent 1:
6d099bb
)
Scripts now run when the player switches to no song playing.
author
Kent Sutherland
<ksuther@ithinksw.com>
Thu, 12 Feb 2004 12:49:52 +0000
(12:49 +0000)
committer
Kent Sutherland
<ksuther@ithinksw.com>
Thu, 12 Feb 2004 12:49:52 +0000
(12:49 +0000)
MainController.m
patch
|
blob
|
history
diff --git
a/MainController.m
b/MainController.m
index
56f568f
..
bf3bda3
100755
(executable)
--- a/
MainController.m
+++ b/
MainController.m
@@
-330,7
+330,7
@@
static MainController *sharedController;
if ( [self songChanged] && (timerUpdating != YES) && (playerRunningState == ITMTRemotePlayerRunning) ) {
ITDebugLog(@"The song changed.");
if ( [self songChanged] && (timerUpdating != YES) && (playerRunningState == ITMTRemotePlayerRunning) ) {
ITDebugLog(@"The song changed.");
- if ([df boolForKey:@"runScripts"]
&& [[self currentRemote] currentSongTitle]
) {
+ if ([df boolForKey:@"runScripts"]) {
NSArray *scripts = [[NSFileManager defaultManager] directoryContentsAtPath:[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Application Support/MenuTunes/Scripts"]];
NSEnumerator *scriptsEnum = [scripts objectEnumerator];
NSString *nextScript;
NSArray *scripts = [[NSFileManager defaultManager] directoryContentsAtPath:[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Application Support/MenuTunes/Scripts"]];
NSEnumerator *scriptsEnum = [scripts objectEnumerator];
NSString *nextScript;