Skip to content

Commit

Permalink
Make items in filter list auto tristate
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano committed Jun 6, 2024
1 parent c2761a0 commit ac01f87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openmc_plotter/docks.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ def _createFilterTree(self, spatial_filters):
0, "Only tallies with spatial filters are viewable.")
else:
filter_item.setFlags(
filter_item.flags() | QtCore.Qt.ItemIsUserCheckable)
filter_item.flags() | QtCore.Qt.ItemIsUserCheckable |
QtCore.Qt.ItemIsAutoTristate)
filter_item.setCheckState(0, QtCore.Qt.Unchecked)

# all mesh bins are selected by default and not shown in the dock
Expand Down

0 comments on commit ac01f87

Please sign in to comment.