Commit 3f0415fa authored by Max Kellermann's avatar Max Kellermann

UpdateGlue: move stats_invalidate() call to Instance::DatabaseModified()

parent 348d0c94
......@@ -21,6 +21,7 @@
#include "Instance.hxx"
#include "Partition.hxx"
#include "Idle.hxx"
#include "Stats.hxx"
void
Instance::DeleteSong(const char *uri)
......@@ -31,6 +32,7 @@ Instance::DeleteSong(const char *uri)
void
Instance::DatabaseModified()
{
stats_invalidate();
partition->DatabaseModified();
idle_add(IDLE_DATABASE);
}
......
......@@ -29,7 +29,6 @@
#include "GlobalEvents.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
#include "Stats.hxx"
#include "Main.hxx"
#include "Instance.hxx"
#include "system/FatalError.hxx"
......@@ -162,8 +161,6 @@ static void update_finished_event(void)
spawn_update_task(std::move(i));
} else {
progress = UPDATE_PROGRESS_IDLE;
stats_invalidate();
}
}
......
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