fix suggestions

This commit is contained in:
Simon Gardling
2022-03-29 13:40:07 -04:00
parent c653c5a1c0
commit bb91dc5983
2 changed files with 40 additions and 35 deletions

View File

@@ -490,7 +490,7 @@ impl MathApp {
.clicked();
// Contains the function string in a text box that the user can edit
let hint = generate_hint(&self.func_strs[i]);
let hint = generate_hint(&self.func_strs[i]).unwrap_or_default();
let func_edit_focus = TextEdit::singleline(&mut self.func_strs[i])
.hint_text(&hint, true)