mne-qt-browser
mne-qt-browser copied to clipboard
BUG: Fix bug with over-updating and antialias toggle
In finding #270 I noticed that just opening the Settings dialog triggered 3 updates. There is no reason this is necessary, and is an unnecessary slowdown. It happens because we connect the listener then set the value (to it's currently used value)... which triggers an update.
And this is a bug for antialiasing actually because it triggers an AA toggle, so if you had AA on, it connected the listener, set the setChecked(True) which initiated a toggle, disabling AA. So the check state was always out of phase with the actual state.
@nmarkowitz feel free to take a look and click "approve" if you're happy and I'll merge
This is a pretty trivial change so marking for merge-when-green after merging main into this branch