diff --git a/src/widget/color_picker/mod.rs b/src/widget/color_picker/mod.rs index 5f0700a9316..54c6eab1f52 100644 --- a/src/widget/color_picker/mod.rs +++ b/src/widget/color_picker/mod.rs @@ -192,6 +192,7 @@ impl ColorPickerModel { self.save_next = Some(Color::from(srgb)); } ColorPickerUpdate::ToggleColorPicker => { + self.must_clear_cache.store(true, Ordering::SeqCst); self.active = !self.active; self.copied_at = None; }