Fix abnormal history recording when not flipping pages. Close #392 (#395)

This commit is contained in:
角砂糖
2025-06-03 17:36:20 +08:00
committed by GitHub
parent fc5fed1707
commit b057be0311
2 changed files with 6 additions and 3 deletions

View File

@@ -40,6 +40,9 @@ class _ReaderImagesState extends State<_ReaderImages> {
reader.images = images;
reader.isLoading = false;
inProgress = false;
Future.microtask(() {
reader.updateHistory();
});
});
} catch (e) {
setState(() {
@@ -65,6 +68,9 @@ class _ReaderImagesState extends State<_ReaderImages> {
reader.images = res.data;
reader.isLoading = false;
inProgress = false;
Future.microtask(() {
reader.updateHistory();
});
});
}
}