mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
lock Send button on activate
This commit is contained in:
parent
97af26c44e
commit
dea9669d3c
2 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue