Zapit-Optostim / zapit

General purpose optostimulation system
GNU Lesser General Public License v2.1
6 stars 1 forks source link

Loading a stimulus config at the CLI does not update the GUI text #132

Open raacampbell opened 11 months ago

raacampbell commented 11 months ago

Describe the bug Loading a stimulus config at the CLI is not reflected in the GUI text at the bottom of the screen.

To Reproduce

pathToExample = fullfile(zapit.updater.getInstallPath,'examples','example_stimulus_config_files');
exampleFiles = dir(fullfile(pathToExample,'*.yml'));
hZP.loadStimConfig(fullfile(pathToExample,exampleFiles(1).name))

Does not alter GUI text. This is because zapit.gui.main.controller.loadStimConfig_Callback is the only thing that does this and that is run by a button press.

Expected behavior It should alter the GUI text.