-
-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix merge of AddonInfo (masterAddonInfo field) #4309
Conversation
This fix allows having translated label for bindings when showing list of installed bindings in Main UI parameters. Fix openhab/openhab-webui#2639 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
if (!a.isMasterAddonInfo() && b.isMasterAddonInfo()) { | ||
builder.isMasterAddonInfo(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it important that a
is not masterAddonInfo
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to avoid the useless call to builder.isMasterAddonInfo when the builder value is already set to true, and have a similar pattern as the remaining in that method.
But could also be done differently by replacing the full if then block by just:
builder.isMasterAddonInfo(a.isMasterAddonInfo() || b.isMasterAddonInfo()};
shall we backport this to 4.2.x? |
Would be appreciated. |
This fix allows having translated label for bindings when showing list of installed bindings in Main UI parameters. Fix openhab/openhab-webui#2639 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This fix allows having translated label for bindings when showing list of installed bindings in Main UI parameters.
Fix openhab/openhab-webui#2639
Signed-off-by: Laurent Garnier lg.hc@free.fr