Skip to content

Commit 0af02b7

Browse files
authored
fix: fix issue with channel group widget not working with only one group (#288)
fix: use textActivated
1 parent 800b7f6 commit 0af02b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pymmcore_widgets/_channel_group_widget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(
2727
) -> None:
2828
super().__init__(parent)
2929

30-
self.setSizeAdjustPolicy(QComboBox.AdjustToContents)
30+
self.setSizeAdjustPolicy(QComboBox.SizeAdjustPolicy.AdjustToContents)
3131

3232
self._mmc = mmcore or CMMCorePlus.instance()
3333

@@ -39,7 +39,7 @@ def __init__(
3939
self._mmc.events.propertyChanged.connect(self._on_property_changed)
4040
self._mmc.events.configDefined.connect(self._update_channel_group_combo)
4141

42-
self.currentTextChanged.connect(self._mmc.setChannelGroup)
42+
self.textActivated.connect(self._mmc.setChannelGroup)
4343

4444
self.destroyed.connect(self._disconnect)
4545

0 commit comments

Comments
 (0)