Skip to content

Commit

Permalink
fix: The welcome screen should not navigate before it initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
Losses committed Dec 3, 2024
1 parent 1fc96ab commit 9350ad3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/providers/library_path.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class LibraryPathProvider with ChangeNotifier {
LibraryInitializeMode? selectedMode,
) async {
_currentPath = filePath;
libraryHistory.add(filePath);
notifyListeners();

var (success, notReady, error) =
Expand All @@ -83,8 +82,10 @@ class LibraryPathProvider with ChangeNotifier {
}

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

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

0 comments on commit 9350ad3

Please sign in to comment.