Skip to content

Commit

Permalink
fixes #37 corrected FileSelector error (#38)
Browse files Browse the repository at this point in the history
* fixes #37  corrected FileSelector error

* package hotfix release 2.2.1
  • Loading branch information
rjackey authored May 19, 2022
1 parent 0f21563 commit 1360050
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion deploy/Toolbox Packaging Project.prj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ https://www.mathworks.com/matlabcentral/fileexchange/66235-widgets-toolbox

Planning a complex or business-critical app? MathWorks Consulting can advise you on design and architecture: https://www.mathworks.com/services/consulting/proven-solutions/software-development-with-matlab.html</param.description>
<param.screenshot>${PROJECT_ROOT}\widgets_logo.png</param.screenshot>
<param.version>2.2.0</param.version>
<param.version>2.2.1</param.version>
<param.output>${PROJECT_ROOT}\Widgets Toolbox - MATLAB App Designer Components.mltbx</param.output>
<param.products.name>
<item>MATLAB</item>
Expand Down
5 changes: 3 additions & 2 deletions widgets/+wt/FileSelector.m
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,9 @@ function setValueFromFullPath(obj,fullPath)
numAbove = max(numel(rootParts) - idx + 1, 0);
if numAbove>0

obj.throwError("Path '%s' is not within the root directory '%s'.",...
fullPath, obj.RootDirectory);
msg = "Select a path beneath the root:" + ...
newline + newline + obj.RootDirectory;
obj.throwError(msg);

else

Expand Down
Loading

0 comments on commit 1360050

Please sign in to comment.