configurable scan parallelism based on hdd or sdd
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { EventsOn } from '@runtime/runtime';
|
||||
import { GetAllPlaylistsWithTracks } from '@go/playlist/Service';
|
||||
import type { playlist } from '@go/models';
|
||||
import { Events } from '../events';
|
||||
|
||||
type Subscriber = () => void;
|
||||
|
||||
@@ -9,6 +11,12 @@ class PlaylistStore {
|
||||
private scrollPosition = 0;
|
||||
private subscribers = new Set<Subscriber>();
|
||||
|
||||
constructor() {
|
||||
EventsOn(Events.LibraryScanComplete, () => {
|
||||
this.invalidate();
|
||||
});
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
// DATA ACCESS
|
||||
// Returns cached data or fetches from backend on first access.
|
||||
|
||||
Reference in New Issue
Block a user