Commit 6fb8c549 authored by Max Kellermann's avatar Max Kellermann

update: refresh stats when database update is finished

parent a9bd64b1
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment