Skip to content

Commit 1360050

Browse files
authored
fixes #37 corrected FileSelector error (#38)
* fixes #37 corrected FileSelector error * package hotfix release 2.2.1
1 parent 0f21563 commit 1360050

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

deploy/Toolbox Packaging Project.prj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ https://www.mathworks.com/matlabcentral/fileexchange/66235-widgets-toolbox
2929

3030
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>
3131
<param.screenshot>${PROJECT_ROOT}\widgets_logo.png</param.screenshot>
32-
<param.version>2.2.0</param.version>
32+
<param.version>2.2.1</param.version>
3333
<param.output>${PROJECT_ROOT}\Widgets Toolbox - MATLAB App Designer Components.mltbx</param.output>
3434
<param.products.name>
3535
<item>MATLAB</item>

widgets/+wt/FileSelector.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ function setValueFromFullPath(obj,fullPath)
355355
numAbove = max(numel(rootParts) - idx + 1, 0);
356356
if numAbove>0
357357

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

361362
else
362363

0 commit comments

Comments
 (0)