ni / labview-icon-editor

Source for LabVIEW's icon editor
MIT License
13 stars 9 forks source link

Automatically detect mismatched banners on VIs part of LVLIBs #40

Open svelderrainruiz opened 1 day ago

svelderrainruiz commented 1 day ago

This issue stems from a comment contained on https://github.com/ni/labview-icon-editor/issues/19

Quote: _Optional feature extension: During its loading/start-up procedure the Icon Editor could detect if the VI/CTL has the "wrong" banner (banner does not match current owner banner). If that is the case, the Icon Editor could display a two button dialogue containing a message such as:

"This VI does not use the banner of its owner, "name of owner here". Would you like the banner to be applied?"

If the user selects "Yes" (or hits Enter), the Icon Editor would execute the "Import Icon from Owning Library..." action for the user.

Benefits:

This functionality would act like a mini VI analyser. It would help catch this issue. Clicking Yes (or hitting Enter) would be even quicker than executing the keyboard shortcut. Downsides: Performing the check may slow down the start-up sequence. This may be a significant drawback.

Also enable a checkbox to "Always Apply". _

svelderrainruiz commented 1 day ago
image

I am thinking on having 2 checkboxes for this.

stagg54 commented 21 hours ago

sounds reasonable.

crossrulz commented 19 hours ago

I think it would nice to have the Icon Editor detect if the owning library's icon was updated and put a warning in a window status text or similar. This would be not in your face and force you to update the icon. To remove the notice, one just needs to update the NI_Library layer via the menu or shortcut.

svelderrainruiz commented 18 hours ago

@gregr-ni @dnattinger do you believe this is a change that can be brought back into the product if i do it?

gregr-ni commented 17 hours ago

The goal is to have the shipping icon editor be built from github, so everything that happens here should be pulled back into the product. We don't have that process automated yet though.

svelderrainruiz commented 13 hours ago

These are the 4 functions that i am going to develop:

1 - Enable automatic banner mismatch detection:

image

2 - Auto import icon from owning library:

image

image

3 - Auto save VI when importing owning library:

image

image

4 - This feature gets disabled if any of these conditions are met