Zapit-Optostim / zapit

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

Buttons on calibrate scanners tab mostly listen to each other but they don't listen to those on calib sample #79

Closed raacampbell closed 1 year ago

raacampbell commented 1 year ago

i.e. If user presses Cat & Mouse when they are in Point Mode, then Point is disabled and Cat & Mouse enabled. But this does not happen for any of the buttons on the calibrate sample tab. The buttons on the two tabs need to respect each other. However, there is a lot of duplicate code currently being employed to achieve what already works.

Probably we need a single property that reflects the GUI state and a single listener that watches it and responds appropriately.

raacampbell commented 1 year ago

Is now either OK or very close. Enough that we can close this. 6f400475ba9ba6e4003e7e7a44414345851e5351