1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-05-04 22:04:21 +02:00

Compare commits

...

1 Commits

Author SHA1 Message Date
wyzula_j 05efc91409 fix(colormap_widget): "None" removed from the menu 2024-10-30 14:36:51 +01:00
@@ -34,6 +34,10 @@ class BECColorMapWidget(BECWidget, QWidget):
self.button.setColorMap(cmap)
self._cmap = cmap
# Remove None from the top of the menu
self.button._menu = self.button.getMenu()
self.button._menu.removeAction(self.button._menu.actions()[0])
# Connect the signal
self.button.sigColorMapChanged.connect(self.colormap_changed)