소스 검색

wallet: editbox when text is highlighted and key pressed, use regen_glyphs() since we no longer regen glyphs in redraw()

darkfi 2 년 전
부모
커밋
64c3f1aa3c
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      bin/darkwallet/src/ui/editbox.rs

+ 1 - 2
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();