Clean up GUIDE compatibility review comments
Agent-Logs-Url: https://github.com/kk14222/3D_EDFM_SIM-X/sessions/a128ab7f-6b94-4048-a847-f2dc37bbe0ab Co-authored-by: kk14222 <217880052+kk14222@users.noreply.github.com>
This commit is contained in:
co-authored by
kk14222
parent
2447ff62f6
commit
421696c5e0
@@ -1527,10 +1527,19 @@ classdef EDFMAppController < handle
|
||||
try
|
||||
uialert(obj.App.UIFigure, message, titleText, varargin{:});
|
||||
catch
|
||||
errordlg(char(string(message)), char(string(titleText)), 'modal');
|
||||
errordlg(obj.toDialogText(message), obj.toDialogText(titleText), 'modal');
|
||||
end
|
||||
end
|
||||
|
||||
function textValue = toDialogText(~, value)
|
||||
if iscell(value)
|
||||
textValue = strjoin(string(value), newline);
|
||||
else
|
||||
textValue = string(value);
|
||||
end
|
||||
textValue = char(textValue);
|
||||
end
|
||||
|
||||
function textValue = formatExceptionSummary(~, ME)
|
||||
lines = {
|
||||
sprintf('Error: %s', ME.message)
|
||||
|
||||
Reference in New Issue
Block a user