Remove redundant operation

Not needed for this dialog, as the items here are already in the library (favorite = true) and dateAdded don't have to be updated.
This commit is contained in:
NBA2K1 2025-06-16 01:50:26 +02:00
parent 906d3dabf9
commit aa18b1ad3a

View file

@ -1208,10 +1208,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
TextButton(
onPressed: () {
isar.writeTxnSync(() {
manga.favorite = true;
manga.categories = categoryIds;
manga.dateAdded =
DateTime.now().millisecondsSinceEpoch;
isar.mangas.putSync(manga);
final sync = ref.read(
synchingProvider(syncId: 1).notifier,