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) // needed to refresh when entry changes but the page does not (e.g. on page deletion)
setState(() {}); if (mounted) {
setState(() {});
}
} }
// when the entry image itself changed (e.g. after rotation) // when the entry image itself changed (e.g. after rotation)
void _onImageChanged() async { void _onImageChanged() async {
// rebuild to refresh the Image inside ImagePage // rebuild to refresh the Image inside ImagePage
setState(() {}); if (mounted) {
setState(() {});
}
} }
} }