Skip to content

Commit cf496a9

Browse files
committed
Added warning toggle @ getWebElements()
As per review comment.
1 parent 370e3da commit cf496a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlapptools.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ function fontWeight(uiElement, weight)
121121
if ~isa(p,'matlab.ui.container.Tree')
122122
p.expand(); % The row must be visible to apply changes
123123
end
124+
warnState = mlapptools.toggleWarnings('off');
124125
widgetID = WidgetID('data-test-id', char(struct(uiElement).NodeId));
126+
warning(warnState); % Restore warning state
125127
case 'uipanel'
126128
widgetID = WidgetID('data-tag', mlapptools.getDataTag(uiElement));
127129
otherwise % default:

0 commit comments

Comments
 (0)