From 665f50ed2aef3ab38e7b7f6af80e7d3868ad50f5 Mon Sep 17 00:00:00 2001 From: nyne Date: Mon, 26 May 2025 16:42:05 +0800 Subject: [PATCH] Fixed an issue where comic counts would become invalid after renaming a favorite folder. Close #357 --- lib/foundation/favorites.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/foundation/favorites.dart b/lib/foundation/favorites.dart index 15b9e08..d198ec3 100644 --- a/lib/foundation/favorites.dart +++ b/lib/foundation/favorites.dart @@ -898,6 +898,8 @@ class LocalFavoritesManager with ChangeNotifier { set folder_name = ? where folder_name == ?; """, [after, before]); + counts[after] = counts[before] ?? 0; + counts.remove(before); notifyListeners(); }