minor fix

This commit is contained in:
Thibault Deckers 2021-10-18 17:41:48 +09:00
parent a3bd158ca6
commit 220db5facd

View file

@ -176,12 +176,16 @@ class _ViewerVerticalPageViewState extends State<ViewerVerticalPageView> {
}
// needed to refresh when entry changes but the page does not (e.g. on page deletion)
if (mounted) {
setState(() {});
}
}
// when the entry image itself changed (e.g. after rotation)
void _onImageChanged() async {
// rebuild to refresh the Image inside ImagePage
if (mounted) {
setState(() {});
}
}
}