fix(12-02): invalidate library store cache on LibraryRemoved event

Track list, albums, artists, and genres views now refresh immediately
after a library is removed instead of showing stale cached data.
This commit is contained in:
2026-03-14 10:46:15 -04:00
parent 30f4461e69
commit b093fbb10a
+3
View File
@@ -52,6 +52,9 @@ class LibraryStore {
EventsOn(Events.LibraryScanComplete, () => {
this.invalidate();
});
EventsOn(Events.LibraryRemoved, () => {
this.invalidate();
});
this.loadCoverSize();
this.deferEagerFetch();