Fixes an issue where the read status was not updated.

This commit is contained in:
2025-02-15 21:36:51 +08:00
parent afd3bfb7f5
commit 14837e2543

View File

@@ -642,6 +642,7 @@ class LocalFavoritesManager with ChangeNotifier {
void onRead(String id, ComicType type) async { void onRead(String id, ComicType type) async {
if (appdata.settings['moveFavoriteAfterRead'] == "none") { if (appdata.settings['moveFavoriteAfterRead'] == "none") {
markAsRead(id, type);
return; return;
} }
_modifiedAfterLastCache = true; _modifiedAfterLastCache = true;
@@ -933,8 +934,11 @@ class LocalFavoritesManager with ChangeNotifier {
.toList(); .toList();
} }
void markAsRead(String folder, String id, ComicType type) { void markAsRead(String id, ComicType type) {
var folder = appdata.settings['followUpdatesFolder']; var folder = appdata.settings['followUpdatesFolder'];
if (!existsFolder(folder)) {
return;
}
_db.execute(""" _db.execute("""
update "$folder" update "$folder"
set has_new_update = 0 set has_new_update = 0