diff --git a/frontend/ui/widget/imageviewer.lua b/frontend/ui/widget/imageviewer.lua index 6ddcba711..436ed1fd3 100644 --- a/frontend/ui/widget/imageviewer.lua +++ b/frontend/ui/widget/imageviewer.lua @@ -466,6 +466,9 @@ function ImageViewer:onShow() end function ImageViewer:switchToImageNum(image_num) + if image_num == self._images_list_cur then + return + end if self.image and self.image_disposable and self.image.free then logger.dbg("ImageViewer:switchToImageNum: free self.image", self.image) self.image:free()