afkiwers / inventree_kicad

KiCad EDA conform API endpoint for KiCad's parts library tool. This plugin provides metadata only and requires matching symbol and footprint libraries within the KiCad EDA.
MIT License
38 stars 8 forks source link

[FR]: Adding an option to control symbol visibility of IPN #80

Closed JacobEFO closed 9 months ago

JacobEFO commented 9 months ago

As of right now, if showing the IPN, it is set to invisible by default in the serializers.py:

        if str2bool(self.plugin.get_setting('KICAD_INCLUDE_IPN', False)):
            fields['IPN'] = {
                'value': f'{part.IPN}',
                'visible': 'False'
            }

It would be a beneficial option to allow control of setting visibility. I am not entirely sure what the best way of controlling this, but a handle in the settings panel is one option.

afkiwers commented 9 months ago

addressed in https://github.com/afkiwers/inventree_kicad/pull/81