From 6fb8c5493910097636d2122cb57894375c16901d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Jan 2009 20:30:27 +0100 Subject: update: refresh stats when database update is finished --- src/update.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/update.c b/src/update.c index 80fa3add3..5455f1da8 100644 --- a/src/update.c +++ b/src/update.c @@ -31,6 +31,8 @@ #include "update.h" #include "idle.h" #include "conf.h" +#include "stats.h" +#include "dbUtils.h" #include "main.h" #include @@ -738,6 +740,9 @@ static void update_finished_event(void) spawn_update_task(path); } else { progress = UPDATE_PROGRESS_IDLE; + + stats.numberOfSongs = countSongsIn(NULL); + stats.dbPlayTime = sumSongTimesIn(NULL); } } -- cgit v1.2.3