Keep publisher.create_widget variant when creating subsets

Whenever a person is creating a subset to publish, the "creator" widget
resets (where you choose the variant, product, etc.) so if the person
is publishing several images of the a variant which is not the default
one, they have to keep selecting the correct one after every "create".

This commit resets the original variant upon successful creation of a
subset for publishing.
This commit is contained in:
Oscar Domingo 2023-06-08 10:40:46 +01:00
parent 2719b6364a
commit f423ebcfcb

View file

@ -828,6 +828,7 @@ class CreateWidget(QtWidgets.QWidget):
if success:
self._set_creator(self._selected_creator)
self.variant_input.setText(variant)
self._controller.emit_card_message("Creation finished...")
self._last_thumbnail_path = None
self._thumbnail_widget.set_current_thumbnails()