Skip to content

Commit a965f02

Browse files
authored
BUG: Fix bug with PySide 6.9.0 (#337)
1 parent 5e81bd3 commit a965f02

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
rev: v0.12.2
44
hooks:
5-
- id: ruff
5+
- id: ruff-check
66
args: ["--fix"]
77
- id: ruff-format
88

mne_qt_browser/_pg_figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,10 +2348,10 @@ def __init__(self, main, *, name):
23482348
self.setLayout(layout)
23492349
self.show()
23502350

2351-
def _proj_changed(self, state, idx):
2351+
def _proj_changed(self, state=None, idx=None):
23522352
# Only change if proj wasn't already applied.
23532353
if not self.mne.projs_active[idx]:
2354-
self.mne.projs_on[idx] = state
2354+
self.mne.projs_on[idx] = not self.mne.projs_on[idx]
23552355
self.weakmain()._apply_update_projectors()
23562356

23572357
def toggle_all(self):

0 commit comments

Comments
 (0)