UpdateGlue: move stats_invalidate() call to Instance::DatabaseModified()
This commit is contained in:
@@ -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)
|
|||||||
void
|
void
|
||||||
Instance::DatabaseModified()
|
Instance::DatabaseModified()
|
||||||
{
|
{
|
||||||
|
stats_invalidate();
|
||||||
partition->DatabaseModified();
|
partition->DatabaseModified();
|
||||||
idle_add(IDLE_DATABASE);
|
idle_add(IDLE_DATABASE);
|
||||||
}
|
}
|
||||||
|
@@ -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)
|
|||||||
spawn_update_task(std::move(i));
|
spawn_update_task(std::move(i));
|
||||||
} else {
|
} else {
|
||||||
progress = UPDATE_PROGRESS_IDLE;
|
progress = UPDATE_PROGRESS_IDLE;
|
||||||
|
|
||||||
stats_invalidate();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user