Browse Source

fix: download path check

pull/31/head
AmirrezaChegini 16 hours ago
parent
commit
dff16cb564
  1. 6
      lib/features/language/presentation/bloc/language_bloc.dart

6
lib/features/language/presentation/bloc/language_bloc.dart

@ -52,7 +52,11 @@ class LanguageBloc extends Bloc<LanguageEvent, LanguageState> {
]);
if (Directory(
'${StoragePath.documentDir.path}/${state.selectedLang.code}/audio')
'${StoragePath.documentDir.path}/${state.selectedLang
.code}/answer_audio')
.existsSync() && Directory(
'${StoragePath.documentDir.path}/${state.selectedLang
.code}/question_audio')
.existsSync()) {
if (ContextProvider.context.mounted) {
ContextProvider.context.goNamed(Routes.homePage);

Loading…
Cancel
Save