Skip to content

Commit

Permalink
Fix ChoiceItem radio buttons are duplicated when using callbacks #73
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Apr 8, 2024
1 parent 4783712 commit 8f4d575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ In this release, test coverage is 76%.
* Documentation generation: automatic requirement table generation feature was failing
when using version conditions in the `pyproject.toml` file (e.g. `pyqt5 >= 5.15`).
* [Issue #72](https://github.com/PlotPyStack/guidata/issues/72) - unit test leave files during the build usr/lib/python3/dist-packages/test.json
* [Issue #73](https://github.com/PlotPyStack/guidata/issues/73) - `ChoiceItem` radio buttons are duplicated when using callbacks


## Version 3.4.1 ##
Expand Down
1 change: 1 addition & 0 deletions guidata/dataset/qtitemwidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,7 @@ def initialize_widget(self) -> None:
"""
if self.is_radio:
for button in self._buttons:
button.hide()
button.toggled.disconnect(self.index_changed) # type:ignore
self.vbox.removeWidget(button)
button.deleteLater()
Expand Down

0 comments on commit 8f4d575

Please sign in to comment.