update: refresh stats when database update is finished

This commit is contained in:
Max Kellermann 2009-01-04 20:30:27 +01:00
parent a9bd64b1dd
commit 6fb8c54939
1 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,8 @@
#include "update.h"
#include "idle.h"
#include "conf.h"
#include "stats.h"
#include "dbUtils.h"
#include "main.h"
#include <glib.h>
@ -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);
}
}