app: display in the set color space when a color dialog is not context-aware.

In particular, palette's colors will want to be shown in their own space
(which may in fact be the image's space, for indexed image's colormap;
or in various spaces for named palettes).
This commit is contained in:
Jehan 2024-09-23 14:26:39 +02:00
parent c26ca2339a
commit 8fff258286
1 changed files with 3 additions and 0 deletions

View File

@ -552,6 +552,9 @@ gimp_color_dialog_set_color (GimpColorDialog *dialog,
color);
gimp_color_selection_set_old_color (GIMP_COLOR_SELECTION (dialog->selection),
color);
if (! dialog->user_context_aware)
gimp_color_selection_set_format (GIMP_COLOR_SELECTION (dialog->selection),
gegl_color_get_format (color));
g_signal_handlers_unblock_by_func (dialog->selection,
gimp_color_dialog_color_changed,