Skip to content

Commit 65663fc

Browse files
Copilotiwannet
andcommitted
Fix remaining ref.refresh usage at line 406
Co-authored-by: iwannet <95164143+iwannet@users.noreply.github.com>
1 parent 337a800 commit 65663fc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/ui/book_info_page.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,7 @@ Future<void> downloadFileWidget(WidgetRef ref, BuildContext context,
402402
}
403403
// ignore: unused_result
404404
ref.refresh(checkIdExists(data.md5));
405-
// ignore: unused_result
406-
ref.refresh(myLibraryProvider);
405+
ref.invalidate(myLibraryProvider);
407406
// ignore: use_build_context_synchronously
408407
showSnackBar(context: context, message: 'Book has been downloaded!');
409408
}

0 commit comments

Comments
 (0)