Skip to content

Commit

Permalink
fix: clear the color picker when it is toggled
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Nov 16, 2023
1 parent 7ea8a61 commit 448c777
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widget/color_picker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 448c777

Please sign in to comment.