update: refresh stats when database update is finished
This commit is contained in:
parent
a9bd64b1dd
commit
6fb8c54939
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue