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

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

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