Skip to content

Commit fcba075

Browse files
committed
Colormap editor: "Save" button was enabled when switching to preset colormap
1 parent 23bc1d3 commit fcba075

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plotpy/widgets/colormap/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def set_colormap(self, index: int) -> None:
215215
"""
216216
cmap_copy: EditableColormap = deepcopy(self._cmap_choice.itemData(index))
217217
self.colormap_editor.set_colormap(cmap_copy)
218-
is_new_colormap = not cmap_exists(cmap_copy.name, CUSTOM_COLORMAPS)
218+
is_new_colormap = not cmap_exists(cmap_copy.name)
219219
self._changes_saved = True
220220
self._save_btn.setEnabled(is_new_colormap) # type: ignore
221221

0 commit comments

Comments
 (0)