fix: clear the color picker when it is toggled

This commit is contained in:
Ashley Wulber 2023-11-16 15:32:13 -05:00 committed by Ashley Wulber
parent 7ea8a6103b
commit 448c777812

View file

@ -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;
}