Open svelderrainruiz opened 1 day ago
I am thinking on having 2 checkboxes for this.
Enable automatic banner mismatch detection: Enables or disables the feature that automatically checks mismatches between owning library and VI when VI Icon Editor loads. Having this option enabled and having a mismatch between library banner and VI banner would trigger a popup that gives you the choice to update the banner with the banner from the owning library.
Always apply owning banner: This option remains hidden if "Enable automatic banner mismatch detection" is disabled. Enabling this option would automatically apply the owning library banner when you open the icon editor.
sounds reasonable.
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.
@gregr-ni @dnattinger do you believe this is a change that can be brought back into the product if i do it?
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.
These are the 4 functions that i am going to develop:
1 - Enable automatic banner mismatch detection:
2 - Auto import icon from owning library:
3 - Auto save VI when importing owning library:
4 - This feature gets disabled if any of these conditions are met
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". _