diff --git a/ui/attachment_selector.py b/ui/attachment_selector.py index 939f594..420d491 100644 --- a/ui/attachment_selector.py +++ b/ui/attachment_selector.py @@ -33,17 +33,13 @@ class AttachmentLoaderThread(QThread): # Get amplifiers try: amps = api.get_all_amplifiers() - for amp in amps: - amp.attachment_type = "amplifier" all_attachments.extend(amps) except Exception as e: logger.warning(f"Could not load amplifiers: {e}") - # Get scopes/sights + # Get scopes/sights (both come from same endpoint) try: scopes = api.get_all_scopes() - for scope in scopes: - scope.attachment_type = "scope" all_attachments.extend(scopes) except Exception as e: logger.warning(f"Could not load scopes: {e}") @@ -51,8 +47,6 @@ class AttachmentLoaderThread(QThread): # Get absorbers try: absorbers = api.get_all_absorbers() - for absorber in absorbers: - absorber.attachment_type = "absorber" all_attachments.extend(absorbers) except Exception as e: logger.warning(f"Could not load absorbers: {e}")