From 448c777812c707717e2c6e4467a6e108aaf57f37 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Thu, 16 Nov 2023 15:32:13 -0500 Subject: [PATCH] fix: clear the color picker when it is toggled --- src/widget/color_picker/mod.rs | 1 + 1 file changed, 1 insertion(+) 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; }