Reset song count when indexing starts

This commit is contained in:
Antoine Gersant 2024-10-12 16:38:53 -07:00
parent d1d12aecc5
commit 5a5f696366

View file

@ -208,6 +208,7 @@ impl Scanner {
let mut status = self.status.write().await;
status.last_start_time = Some(SystemTime::now());
status.state = State::InProgress;
status.num_songs_indexed = 0;
}
let was_empty = self.index_manager.is_index_empty().await;