fix(library): reset checkpoints and artwork on forced full scans

This commit is contained in:
zarzet committed 2026-09-15 21:44:53 +07:00
1 parent 097af1532f
commit 0ad17f0caa
3 files changed
+158

No files matched your search

@@ -522,15 +522,18 @@ class LocalLibraryNotifier extends Notifier<LocalLibraryState> {
required String sourceId,
required String folderPath,
required bool isSaf,
required bool forceFullScan,
}) async {
if (_scanCancelRequested) return null;
final scanFile = isSaf
? await PlatformBridge.scanSafTreeToNDJSONFile(
folderPath,
forceFullScan: forceFullScan,
isCancelled: () => _scanCancelRequested,
)
: await PlatformBridge.scanLibraryFolderToNDJSONFile(
folderPath,
forceFullScan: forceFullScan,
isCancelled: () => _scanCancelRequested,
);
var ingested = false;
@@ -677,6 +680,7 @@ class LocalLibraryNotifier extends Notifier<LocalLibraryState> {
sourceId: activeSourceId,
folderPath: effectiveFolderPath,
isSaf: isSaf,
forceFullScan: forceFullScan,
);
if (scanResult == null || _scanCancelRequested) {
state = state.copyWith(