git.ithinksw.org
/
MenuTunes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed selectPlaylist: it works now :D
[MenuTunes.git]
/
MenuTunes.m
diff --git
a/MenuTunes.m
b/MenuTunes.m
index
7c5e543
..
419a93a
100755
(executable)
--- a/
MenuTunes.m
+++ b/
MenuTunes.m
@@
-594,7
+594,7
@@
Things to do:
- (void)timerUpdate
{
int playlist = [currentRemote currentPlaylistIndex];
- (void)timerUpdate
{
int playlist = [currentRemote currentPlaylistIndex];
- PlayerState playerState = [currentRemote playerState];
+
ITMTRemote
PlayerState playerState = [currentRemote playerState];
if ((playlist > 0) || playerState != stopped) {
int trackPlayingIndex = [currentRemote currentSongIndex];
if ((playlist > 0) || playerState != stopped) {
int trackPlayingIndex = [currentRemote currentSongIndex];
@@
-713,7
+713,9
@@
Things to do:
int playlist = [[sender representedObject] intValue];
if (!isPlayingRadio) {
int curPlaylist = [currentRemote currentPlaylistIndex];
int playlist = [[sender representedObject] intValue];
if (!isPlayingRadio) {
int curPlaylist = [currentRemote currentPlaylistIndex];
- [[playlistMenu itemAtIndex:curPlaylist - 1] setState:NSOffState];
+ if (curPlaylist > 0) {
+ [[playlistMenu itemAtIndex:curPlaylist - 1] setState:NSOffState];
+ }
}
[currentRemote switchToPlaylistAtIndex:playlist];
[[playlistMenu itemAtIndex:playlist - 1] setState:NSOnState];
}
[currentRemote switchToPlaylistAtIndex:playlist];
[[playlistMenu itemAtIndex:playlist - 1] setState:NSOnState];
@@
-731,7
+733,7
@@
Things to do:
- (void)playPause:(id)sender
{
- (void)playPause:(id)sender
{
- PlayerState state = [currentRemote playerState];
+
ITMTRemote
PlayerState state = [currentRemote playerState];
if (state == playing) {
[currentRemote pause];
if (state == playing) {
[currentRemote pause];