1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-04 16:02:51 +01:00

fix(colormap_widget): "None" removed from the menu

This commit is contained in:
2024-10-30 14:36:51 +01:00
parent 86b60b4aed
commit 05efc91409

View File

@@ -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)