From a93933f7bc8b3599be9c4d4274a1ec9971e6e3cc Mon Sep 17 00:00:00 2001 From: LOSSES Don <1384036+Losses@users.noreply.github.com> Date: Tue, 3 Dec 2024 22:40:07 +0800 Subject: [PATCH] fix: Scanning success always trigger branding animation --- lib/providers/library_path.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/providers/library_path.dart b/lib/providers/library_path.dart index c105e1de8..3895514ca 100644 --- a/lib/providers/library_path.dart +++ b/lib/providers/library_path.dart @@ -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")]),