Skip to content

Commit 00a31ae

Browse files
committed
Fix colormap selection triggering signal issue
1 parent 9f51e16 commit 00a31ae

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog #
22

3+
## Version 2.1.1 ##
4+
5+
Bug fixes:
6+
7+
* Colormap selection from the toolbar was not triggering the `SIG_ITEMS_CHANGED` signal
8+
(every time an item parameter is changed, the `SIG_ITEMS_CHANGED` signal has to be
9+
emitted by the `BasePlot` instance to notify the application that the plot has been
10+
modified)
11+
312
## Version 2.1.0 ##
413

514
In this release, test coverage is 71%.

plotpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
.. _GitHub: https://github.com/PierreRaybaut/plotpy
2121
"""
2222

23-
__version__ = "2.1.0"
23+
__version__ = "2.1.1"
2424
__VERSION__ = tuple([int(number) for number in __version__.split(".")])
2525

2626
# --- Important note: DATAPATH and LOCALEPATH are used by guidata.configtools

plotpy/tools/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ def activate_cmap(self, cmap: str | EditableColormap) -> None:
512512
self.action.setText(_("Colormap: %s") % self._active_colormap.name)
513513
plot.invalidate()
514514
self.update_status(plot)
515+
plot.SIG_ITEMS_CHANGED.emit(plot)
515516

516517
def update_status(self, plot: BasePlot) -> None:
517518
"""Update tool status if the plot type is not PlotType.CURVE.

0 commit comments

Comments
 (0)