no longer need text_boxes_focused

This commit is contained in:
Simon Gardling
2022-04-07 18:47:08 -04:00
parent 2fcc5c4372
commit 8b97f79d55
3 changed files with 10 additions and 27 deletions

View File

@@ -86,15 +86,15 @@ impl Default for FunctionEntry {
impl FunctionEntry {
/// Create autocomplete ui and handle user input
pub fn auto_complete(&mut self, ui: &mut egui::Ui, i: i32) -> (bool, bool, Option<String>) {
let (output_string, in_focus) = self.autocomplete.ui(ui, self.raw_func_str.clone(), i);
pub fn auto_complete(&mut self, ui: &mut egui::Ui, i: i32) -> (bool, Option<String>) {
let output_string = self.autocomplete.ui(ui, self.raw_func_str.clone(), i);
let changed = output_string != self.raw_func_str;
if changed {
self.update_string(&output_string);
}
(in_focus, changed, self.get_test_result())
(changed, self.get_test_result())
}
/// Get function's cached test result