diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-16 11:13:27 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-16 11:13:27 +0000 |
commit | 4fce016e7a873d941899c509bd0a5be3f46ea1b8 (patch) | |
tree | 37e18811f1322886f8762b4a4c7d2beb74f00ac5 /src/screen_file.c | |
parent | 7857a69fb3c57714a593c71956606e2bae4543c9 (diff) | |
download | mpd-4fce016e7a873d941899c509bd0a5be3f46ea1b8.tar.gz mpd-4fce016e7a873d941899c509bd0a5be3f46ea1b8.tar.xz mpd-4fce016e7a873d941899c509bd0a5be3f46ea1b8.zip |
libmpdclient updated (r1507) - added path to mpdclient_cmd_db_update()
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1508 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/screen_file.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/screen_file.c b/src/screen_file.c index f26333a21..2caf25197 100644 --- a/src/screen_file.c +++ b/src/screen_file.c @@ -563,6 +563,21 @@ browse_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) list_window_check_selected(lw, filelist->length); screen_status_printf(_("Screen updated!")); return 1; + case CMD_DB_UPDATE: + if( !c->status->updatingDb ) + { + if( mpdclient_cmd_db_update(c,filelist->path)==0 ) + { + screen_status_printf(_("Database update of %s started!"), + filelist->path); + /* set updatingDb to make shure the browse callback gets called + * even if the updated has finished before status is updated */ + c->status->updatingDb = 1; + } + } + else + screen_status_printf(_("Database update running...")); + return 1; case CMD_LIST_FIND: case CMD_LIST_RFIND: case CMD_LIST_FIND_NEXT: |