Skip to content

Commit

Permalink
fix: Scanning success always trigger branding animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Losses committed Dec 3, 2024
1 parent 9350ad3 commit a93933f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/providers/library_path.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ class LibraryPathProvider with ChangeNotifier {
}

if (success) {
libraryHistory.add(filePath);
if (!libraryHistory.contains(filePath)) {
libraryHistory.add(filePath);
notifyListeners();
}
CollectionCache().clearAll();
_fileStorageService.storeFilePath(filePath);
notifyListeners();

await operatePlaybackWithMixQuery(
queries: const QueryList([("lib::queue", "true")]),
Expand Down

0 comments on commit a93933f

Please sign in to comment.