mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Fixes an issue where the read status was not updated.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user