fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
4.04k stars 835 forks source link

New parts loaded in to the mine parts bin don't select correctly in Inspector until the bin is saved. #3887

Open vanepp opened 3 years ago

vanepp commented 3 years ago

Current Behaviour

I created these 6 new parts (various pin versions of a top view to92 transistor) and loaded them to the mine parts bin.

capture

In the type field in Inspector only one of the 6 parts appears. If I then exit Fritzing and say yes to save the part bin changes (but no to the save the sketch) and restart Fritzing the type selector in Inspector works as expected:

capture1

All 6 parts appear in the selector list and you can swap between them with Inspector (the swap screws up if you try and do a swap on the original load when the parts were only in the mine parts bin and not saved!) The 6 new parts are available in this forum post:

https://forum.fritzing.org/t/using-transistors-on-veroboard-in-the-breadboard-section/13965/19

Build:

Version 0.9.9 (bCD-348-0-f0af53a9 2021-09-22) 64 [Qt 5.15.2]

Operating System: Windows 10

Steps to reproduce:

Expected Behaviour

The selection should work without having to save the parts to the mine parts bin.

KjellMorgenstern commented 3 years ago

That is very good to know, as it can explain issues observed when creating new parts. I think it would be best if property fields work the same as soons as the part is added, without a restart or grouping parts in a bin. My guess: the restart 'fixes' it. Do you have to add the parts to a bin, or is it enough to say "yes" when Fritzing asks wether you want to keep the part (I know this is confusing, if you keep a part without adding it to a bin, it can still be accessed via the free text search)

vanepp commented 3 years ago

Looks like it works without adding to the mine parts bin. Here I did the load and said yes to keep the new parts but no to save the bin or the sketch. On restarting Fritzing all 6 transistors show in the type pull down menu but not in the mine parts bin so it looks like just adding the parts is enough to correct the problem.

capture

Then shut down and say yes to keep parts but no to save parts bin and sketch

capture1

the Inspector type field has all 6 transistors and the mine parts bin is empty.

capture2

vanepp commented 3 years ago

I just found another instance of what appears to be this same bug. If you load this part in to the mine parts bin (remove the trail .zip to get the .fzpz file)

Geophone-SM-24-SEN11744.fzpz.zip

then drag the part in to breadboard

capture

then change view to schematic

capture1

then change back to breadboard

capture2

the position of the part has changed relative to the breadboard. If the you then exit Fritzing and save the part (but the sketch and mine parts bin are not saved) then restart Fritzing and search for the part and drag it in to the sketch, the part's position remains the same in relation to the breadboard when you change views to schematic and back.