Browse Source

clippy fix

pull/208/head
Emil Ernerfeldt 4 years ago
parent
commit
b72184dc7e
  1. 8
      egui/src/widgets/color_picker.rs

8
egui/src/widgets/color_picker.rs

@ -341,10 +341,10 @@ pub fn color_edit_button_hsva(ui: &mut Ui, hsva: &mut Hsva, alpha: Alpha) -> Res
})
});
if !button_response.clicked() {
if ui.input().key_pressed(Key::Escape) || area_response.clicked_elsewhere() {
ui.memory().close_popup();
}
if !button_response.clicked()
&& (ui.input().key_pressed(Key::Escape) || area_response.clicked_elsewhere())
{
ui.memory().close_popup();
}
}

Loading…
Cancel
Save