From 64c3f1aa3c7dc18afe1cd67c8a38f2e66a3e1bad Mon Sep 17 00:00:00 2001 From: darkfi Date: Thu, 11 Jul 2024 11:01:01 +0200 Subject: [PATCH] wallet: editbox when text is highlighted and key pressed, use regen_glyphs() since we no longer regen glyphs in redraw() --- bin/darkwallet/src/ui/editbox.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/darkwallet/src/ui/editbox.rs b/bin/darkwallet/src/ui/editbox.rs index 4bb775c82..662e39161 100644 --- a/bin/darkwallet/src/ui/editbox.rs +++ b/bin/darkwallet/src/ui/editbox.rs @@ -791,8 +791,7 @@ impl EditBox { async fn insert_char(&self, key: char) { if !self.selected.is_null(0).unwrap() { self.delete_highlighted(); - // This is inefficient but we don't give a shit here - self.redraw().await; + self.regen_glyphs().await; }; let mut text = String::new();