in client/securedrop_client/gui/conversation/export/export_wizard_page.py [0:0]
def on_status_received(self, status: ExportStatus) -> None:
self.status = status
if self.wizard() and isinstance(self.wizard().currentPage(), InsertUSBPage):
logger.debug(f"InsertUSB received {status.value}")
if status in (
ExportStatus.MULTI_DEVICE_DETECTED,
ExportStatus.INVALID_DEVICE_DETECTED,
ExportStatus.DEVICE_WRITABLE,
):
self.update_content(status)
elif status == ExportStatus.NO_DEVICE_DETECTED:
if self.no_device_hint > 0:
self.update_content(status)
self.no_device_hint += 1
else:
# Hide the error hint, if visible, so that if the user navigates
# forward then back they don't see an unneeded hint
self.error_details.hide()
self.wizard().next()