libgimpwidgets: do not set toggles visible when explicitly set not to…

… when changing the model.

Because of this, we had redundant toggles appearing in the Color
Selection dialog, in the GimpColorSelect tab.
This commit is contained in:
Jehan 2024-10-08 22:29:58 +02:00
parent d607a71ba6
commit d66df2aefe

View file

@ -665,7 +665,8 @@ gimp_color_select_set_model_visible (GimpColorSelector *selector,
{ {
GimpColorSelect *select = GIMP_COLOR_SELECT (selector); GimpColorSelect *select = GIMP_COLOR_SELECT (selector);
gtk_widget_set_visible (select->toggle_box[model], visible); if (! visible || gimp_color_selector_get_toggles_visible (selector))
gtk_widget_set_visible (select->toggle_box[model], visible);
} }
static void static void