Merge pull request #657 from NBA2K1/fix-shouldUpdate

Fix shouldUpdate button in categories view
This commit is contained in:
Moustapha Kodjo Amadou 2026-02-05 16:39:49 +01:00 committed by GitHub
commit ea386104aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -418,7 +418,7 @@ class _CategoriesTabState extends ConsumerState<CategoriesTab>
onPressed: () async {
await isar.writeTxn(() async {
category.shouldUpdate =
!(category.shouldUpdate ?? false);
!(category.shouldUpdate ?? true);
category.updatedAt =
DateTime.now().millisecondsSinceEpoch;
isar.categorys.put(category);