The postUpdateUI method of the fix_orientation OptionsWidget is called on the completion of batch tasks with the (new) image rotation. The image that was processed may or may not be the image that is displayed by the widget. If it is not, then updating the rotation setting for the displayed image is incorrect. The postUpdateUI method needs an ImageId parameter so that the setting is updated only if it applies to the displayed image.
The postUpdateUI method of the fix_orientation OptionsWidget is called on the completion of batch tasks with the (new) image rotation. The image that was processed may or may not be the image that is displayed by the widget. If it is not, then updating the rotation setting for the displayed image is incorrect. The postUpdateUI method needs an ImageId parameter so that the setting is updated only if it applies to the displayed image.