Possible Bug with LabVIEW Icon API #538
Replies: 8 comments 5 replies
|
There are a few problems reported here, so I will have to break up my comments. But an oversimplified summary (correct me as needed):
|
|
In regards to problem 2, I am not seeing this with the current development version. I am certain it is related to the undo/redo stack I refactored in April/May timeframe (#525). This fix should be in the next release. |
|
For problem 3, I suspect the default icon is not saved in the VI. As this is dealing with the binary data of the VI and it is a password protect VI, we will need input from NI to confirm the problem. |
|
For problem 1, I fully agree. A simple addition of a Bundle By Name in the True case would solve the problem. I would likely lean towards doing the BBN before the case structure to avoid some duplicated code. |
|
Yes, well summarized. Good to hear about (2). I wasn't necessarily pointing out (3) as an issue, I was mainly just noting the reason (1) wasn't happening in the case of a blank VI. From the code, it looks like (3) may be by design. |
|
@crossrulz |


Uh oh!
There was an error while loading. Please reload this page.
When saving my icons using the LabVIEW Icon API, the template layer opacity gets set to
0and and the visibility gets set toFALSEif there is no template layer. Maybe this is kind of nitpicky since there isn't a template layer anyway, but it's something that changes without me having made the change myself. I think it's fairly easily fixable though.I believe the case structure in this SubVI should be changed just a bit to allow the template opacity and visibility Boolean to get bundled in.:
My expectation would be that even if my opacity is at 50% and I have no template layer, it is still at 50% after I save.
So there's that. But the reason for me starting this discussion is that with the release of the new open-source icon editor, there is another bug that I believe is related. If the user launches the icon editor using the
Launch Icon Editor.viAPI VI, and then clicks Cancel without making any changes at all, the new confirmation dialog still gets displayed.Attached is a project to reproduce the two issues above. Step to reproduce are in the two "Test" VIs.
Interestingly, when
Get VI Icon.viis called onBlank VI.vi, an error occurs inside the password-protected SubVI, causing the following VI to insert default values for the template parameters, which are100for opacity andTRUEfor visibility.When
Get VI Icon.viis called onTemplate Removed.vi, a blank VI where a template layer was added and then removed, the opacity and visibility are again at0andFALSErespectively.As I'm finishing up making this demo project, I'm realizing that the confirmation dialog issue may have more to do with text layers. If you run
Confirmation Dialog Test.viwithBlank Library VI No Text.vi, you don't get the confirmation dialog.All reactions