lock Send button on activate

This commit is contained in:
yggverse 2025-01-22 08:01:13 +02:00
parent 97af26c44e
commit dea9669d3c
2 changed files with 6 additions and 2 deletions

View file

@ -22,7 +22,9 @@ impl Widget {
// Init events
button.connect_clicked({
move |_| {
move |this| {
this.set_sensitive(false);
this.set_label("Sending..");
action_send.activate(None);
}
});

View file

@ -22,7 +22,9 @@ impl Send {
// Init events
button.connect_clicked({
move |_| {
move |this| {
this.set_sensitive(false);
this.set_label("Sending..");
action_send.activate(None);
}
});