mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 03:32:06 +00:00
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:
parent
906d3dabf9
commit
aa18b1ad3a
1 changed files with 0 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue