From 011619340fa58b31afb196b9f5d181f35cf1d517 Mon Sep 17 00:00:00 2001 From: nyne Date: Thu, 20 Feb 2025 16:21:39 +0800 Subject: [PATCH] Fixed the update time was not updated after checking. --- lib/foundation/favorites.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/foundation/favorites.dart b/lib/foundation/favorites.dart index 422ddad..d4fee6f 100644 --- a/lib/foundation/favorites.dart +++ b/lib/foundation/favorites.dart @@ -185,6 +185,18 @@ class FavoriteItemWithUpdateInfo extends FavoriteItem { var sourceName = type.comicSource?.name ?? "Unknown"; return "$updateTime | $sourceName"; } + + @override + operator ==(Object other) { + return other is FavoriteItemWithUpdateInfo && + other.updateTime == updateTime && + other.hasNewUpdate == hasNewUpdate && + super == other; + } + + @override + int get hashCode => + super.hashCode ^ updateTime.hashCode ^ hasNewUpdate.hashCode; } class LocalFavoritesManager with ChangeNotifier {