UpdateGlue: move stats_invalidate() call to Instance::DatabaseModified()
This commit is contained in:
parent
348d0c944e
commit
3f0415fa24
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue