Open vanepp opened 1 year ago
The title is a field of the sketch. For example, you might have changed it to "Left motor driver" and "Right motor driver".
It could be unexpected if these are changed to A1 and A2 after the update.
In theory we could add some code that asks the user about what to do with the title.
Current Behaviour
Load a sketch with an obsoleted part (Dual_VNH2SP30_Motor_Driver in this case)
say yes to the update
Load the updated part from core parts. Its label is A1 (which is what is set in the part) but the label on the updated part is still the old label MD03A1.
This appears to be because of the title field in the .fz file for the upgraded obsoleted part it remains MD03A1
instance moduleIdRef="DualVNH249121052c4ad42279a5b27945f1a08b2" modelIndex="6486" path="C:/Program Files/Fritzing/fritzing-parts/core/Dual_VNH2SP30_Motor_Driver_7756e52_2.fzp" property name="part number" value="MD03A"/ title>MD03A1</title
for the part loaded from core parts (and then saved as f .fzz file) the title is the expected A1 from the part.
edit try quoting the xml as it got eaten by the post and I don't know how to escape it on github ... quoting didn't work so remove the greater than anad less thans.
instance moduleIdRef="DualVNH249121052c4ad42279a5b27945f1a08b2" modelIndex="5848" path="C:/Program Files/Fritzing/fritzing-parts/core/Dual_VNH2SP30_Motor_Driver_7756e52_2.fzp" property name="part number" value="MD03A"/ title>A1</title
To me it appears the obsolete mechanism isn't updating something during the update which leaves the title field with the old value.
Build:
Version 0.9.10 (bCD-2134-0-40d23c29 2022-07-01) 64 [Qt 5.15.2]
Operating System: Windows 10
Steps to reproduce:
See Current Behaviour above
Expected Behaviour
The label field for the part gets updated to A1 after the obsolete completes.