Model Advisor "Fix" Button Disabled in Toolbar but functional via "Fix this Check"

32 次查看(过去 30 天)
I have a functional model advisor custom check with a "fix" solution implemented (also functional). However the "fix" button is disabled in the toolbar, but I can right-click the failed check and click "fix this check", and the fix solution works as expected. How do I get the toolbar enabled?
All of the help I see on the topic uses a style type of "DetailStyle" whereas I am using "StyleOne" (this is older code I am using in a newer version of matlab). I would like to avoid changing the style type.
My fix is implented as follows:
if self.HasFix
myAction = ModelAdvisor.Action;
myAction.setCallbackFcn(@self.Fix);
myAction.Name = self.FixName;
myAction.Description = self.FixDescription;
rec.setAction(myAction);
end
Everything works, just the toolbar "fix" button is disabled for some reason!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Weather and Atmospheric Science 的更多信息

产品


版本

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by