clippy fix
This commit is contained in:
parent
5d0c71350d
commit
b72184dc7e
1 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue