use retain instead of .chars().filter()
This commit is contained in:
parent
a6fb445e5d
commit
02dbfd78bc
@ -113,10 +113,7 @@ impl FunctionManager {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Only keep valid chars
|
// Only keep valid chars
|
||||||
new_string = new_string
|
new_string.retain(|c| crate::misc::is_valid_char(&c));
|
||||||
.chars()
|
|
||||||
.filter(crate::misc::is_valid_char)
|
|
||||||
.collect::<String>();
|
|
||||||
|
|
||||||
// If not fully open, return here as buttons cannot yet be displayed, therefore the user is inable to mark it for deletion
|
// If not fully open, return here as buttons cannot yet be displayed, therefore the user is inable to mark it for deletion
|
||||||
if ui.ctx().animate_bool(*te_id, re.has_focus()) == 1.0 {
|
if ui.ctx().animate_bool(*te_id, re.has_focus()) == 1.0 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user