mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-11-02 08:46:05 +01:00
fix(colormap_widget): "None" removed from the menu
This commit is contained in:
1 parent
86b60b4aed
commit
05efc91409
1 file changed
+4
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user