wallet: disable sending when the input editbox is empty

This commit is contained in:
darkfi
2024-10-01 15:11:29 +02:00
parent 242fe81658
commit 67df2242dc
2 changed files with 5 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ make android
To debug any issues, you can enter an interactive terminal using `make cli`.
To delete everything, run `podman system reset`.
# Useful Dev Commands
This is just devs.

View File

@@ -380,6 +380,9 @@ impl LocalDarkIRC {
async fn handle_send(&self) {
// Get text from editbox
let text = self.editbox_text.get();
if text.is_empty() {
return
}
// Clear editbox
self.editbox_text.set("");
self.chatview_scroll.set(0.);