update: refresh stats when database update is finished
This commit is contained in:
@@ -31,6 +31,8 @@
|
|||||||
#include "update.h"
|
#include "update.h"
|
||||||
#include "idle.h"
|
#include "idle.h"
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
|
#include "stats.h"
|
||||||
|
#include "dbUtils.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
@@ -738,6 +740,9 @@ static void update_finished_event(void)
|
|||||||
spawn_update_task(path);
|
spawn_update_task(path);
|
||||||
} else {
|
} else {
|
||||||
progress = UPDATE_PROGRESS_IDLE;
|
progress = UPDATE_PROGRESS_IDLE;
|
||||||
|
|
||||||
|
stats.numberOfSongs = countSongsIn(NULL);
|
||||||
|
stats.dbPlayTime = sumSongTimesIn(NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user