diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-27 21:44:58 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-27 21:44:58 +0000 |
commit | a9007c69af2d87006f22e9bdf5da8db9401b2379 (patch) | |
tree | bdc628cea84c383f9c33c7a5f803089c0b889014 /main.c | |
parent | e3dd59c6b94c214a3a883ea938ca7ec966f2ba96 (diff) | |
download | mpd-a9007c69af2d87006f22e9bdf5da8db9401b2379.tar.gz mpd-a9007c69af2d87006f22e9bdf5da8db9401b2379.tar.xz mpd-a9007c69af2d87006f22e9bdf5da8db9401b2379.zip |
Moved random,repeat notification to main.c
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@519 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -105,6 +105,8 @@ main(int argc, const char *argv[]) while( connected || options->reconnect ) { command_t cmd; + static int repeat = -1; + static int random = -1; if( connected && counter==0 ) { @@ -119,10 +121,27 @@ main(int argc, const char *argv[]) else mpd_finishCommand(mpc->connection); counter=10; + + if( repeat<0 ) + { + repeat = mpc->status->repeat; + random = mpc->status->random; + } + if( repeat != mpc->status->repeat ) + screen_status_printf("Repeat is %s", + mpc->status->repeat ? "On" : "Off"); + if( random != mpc->status->random ) + screen_status_printf("Random is %s", + mpc->status->random ? "On" : "Off"); + + repeat = mpc->status->repeat; + random = mpc->status->random; } if( connected ) { + + screen_update(mpc); if( (cmd=get_keyboard_command()) != CMD_NONE ) { |