mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 22:57:59 -05:00
wallet: disable sending when the input editbox is empty
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.);
|
||||
|
||||
Reference in New Issue
Block a user