fix(12-02): refresh library track counts after scan completes

loadLibraries() now runs on ScanComplete and ScanQueueDrained so newly
added libraries show their track count without navigating away.
This commit is contained in:
2026-03-14 10:01:35 -04:00
parent b648307ac5
commit 1f872aa005
@@ -1236,6 +1236,9 @@ export class ConfigPage extends LitElement {
if (metrics) {
this.metrics = metrics;
}
// Refresh track counts after scan finishes.
void this.loadLibraries();
};
private handleScanQueued = (): void => {
@@ -1246,6 +1249,9 @@ export class ConfigPage extends LitElement {
this.scanQueuedCount = 0;
this.scanning = false;
this.scanPaused = false;
// Refresh track counts after all queued scans finish.
void this.loadLibraries();
};
private handleScanPaused = (): void => {