Fixed an issue where comic counts would become invalid after renaming a favorite folder. Close #357

This commit is contained in:
2025-05-26 16:42:05 +08:00
parent 55733ef505
commit 665f50ed2a

View File

@@ -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();
}