Open raacampbell opened 1 year ago
Loading a stim config file at the CLI does not update the GUI state to indicate this happened.
To Reproduce Steps to reproduce the behavior:
start_zapit
fn = fullfile(zapit.updater.getInstallPath,'examples','example_stimulus_config_files','uniAndBilateral_5_conditions.yml');
hZP.loadStimConfig(fn)
hZP.stimConfig
But GUI does not report this.
The code that loads the file and updates the GUI in zapit.gui.main.controller.loadStimConfig_Callback needs to be separated. The GUI update should run based on a callback that fires when the stimConfig changes.
zapit.gui.main.controller.loadStimConfig_Callback
Loading a stim config file at the CLI does not update the GUI state to indicate this happened.
To Reproduce Steps to reproduce the behavior:
start_zapit
fn = fullfile(zapit.updater.getInstallPath,'examples','example_stimulus_config_files','uniAndBilateral_5_conditions.yml');
hZP.loadStimConfig(fn)
hZP.stimConfig
% Yes it is loadedBut GUI does not report this.
How to fix
The code that loads the file and updates the GUI in
zapit.gui.main.controller.loadStimConfig_Callback
needs to be separated. The GUI update should run based on a callback that fires when the stimConfig changes.