We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7611519 commit e51a29bCopy full SHA for e51a29b
widgets/+wt/FileSelector.m
@@ -177,6 +177,17 @@ function update(obj)
177
showWarn = strlength(obj.Value) && ~obj.ValueIsValidPath;
178
obj.WarnImage.Visible = showWarn;
179
180
+ % Set tooltip
181
+ if showWarn
182
+ if obj.SelectionType == "file"
183
+ obj.WarnImage.Tooltip = 'File does not exist.';
184
+ elseif obj.SelectionType == "putfile"
185
+ obj.WarnImage.Tooltip = 'Folder for file storage does not exist.';
186
+ else
187
+ obj.WarnImage.Tooltip = 'Folder does not exist.';
188
+ end
189
190
+
191
% Update button appearance
192
obj.ButtonControl.Text = obj.ButtonLabel;
193
if strlength(obj.ButtonLabel)
0 commit comments