Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Fix bug with over-updating and antialias toggle #271

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

larsoner
Copy link
Member

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.

@larsoner
Copy link
Member Author

@nmarkowitz feel free to take a look and click "approve" if you're happy and I'll merge

@larsoner larsoner enabled auto-merge (squash) September 13, 2024 14:06
@larsoner
Copy link
Member Author

This is a pretty trivial change so marking for merge-when-green after merging main into this branch

@larsoner larsoner merged commit 6ca35d2 into mne-tools:main Sep 13, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant