From a283f29cd2f62d73d83e9a510af205627c34756a Mon Sep 17 00:00:00 2001 From: Jim Pollaro Date: Tue, 10 Jun 2025 10:27:15 -0500 Subject: [PATCH] trying dumb fix --- +nla/+inputField/Behavior.m | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/+nla/+inputField/Behavior.m b/+nla/+inputField/Behavior.m index f971bed6..8f5a47f1 100755 --- a/+nla/+inputField/Behavior.m +++ b/+nla/+inputField/Behavior.m @@ -239,13 +239,17 @@ function read(obj, input_struct) function buttonClickedCallback(obj, ~) - [file, path, idx] = uigetfile( ... - {'*.txt;*.dat;*.csv', 'Text (*.txt,*.dat,*.csv)'; ... - '*.xls;*.xlsb;*.xlsm;*.xlsx;*.xltm;*.xltx;*.ods', 'Spreadsheet (*.xls,*.xlsb,*.xlsm,*.xlsx,*.xltm,*.xltx,*.ods)'; ... - '*.xml', 'XML (*.xml)'; ... - '*.docx', 'Word (*.docx)'; ... - '*.mat', 'MATLAB table (*.mat)'; ... - '*.html;*.xhtml;*.htm', 'HTML (*.html,*.xhtml,*.htm)'}, 'Select Behavior File'); + if ismac + [file, path, idx] = uigetfile('*.*', 'Select Behavior File'); + else + [file, path, idx] = uigetfile( ... + {'*.txt;*.dat;*.csv', 'Text (*.txt,*.dat,*.csv)'; ... + '*.xls;*.xlsb;*.xlsm;*.xlsx;*.xltm;*.xltx;*.ods', 'Spreadsheet (*.xls,*.xlsb,*.xlsm,*.xlsx,*.xltm,*.xltx,*.ods)'; ... + '*.xml', 'XML (*.xml)'; ... + '*.docx', 'Word (*.docx)'; ... + '*.mat', 'MATLAB table (*.mat)'; ... + '*.html;*.xhtml;*.htm', 'HTML (*.html,*.xhtml,*.htm)'}, 'Select Behavior File'); + end if idx ~= 0 try prog = uiprogressdlg(obj.fig, 'Title', 'Loading behavior file', 'Message', sprintf('Loading %s', file),...