Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
set exclusive with api
Browse files Browse the repository at this point in the history
  • Loading branch information
Licini committed Mar 27, 2023
1 parent b4a9ce3 commit 550fa39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compas_view2/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,8 @@ def _add_menubar_items(self, items: List[Dict], parent: QtWidgets.QWidget):
if "items" in item:
self._add_menubar_items(item["items"], menu)
elif item["type"] == "radio":
radio = QtWidgets.QActionGroup(self.window, exclusive=True)
radio = QtWidgets.QActionGroup(self.window)
radio.setExclusive(True)
for item in item["items"]:
action = self._add_action(parent, text=item["text"], action=item["action"])
action.setCheckable(True)
Expand Down

0 comments on commit 550fa39

Please sign in to comment.