Skip to content

Commit

Permalink
Merge pull request #720 from mkljczk/auth-dialog-submit
Browse files Browse the repository at this point in the history
Add on_submit handler to NetworkAuth dialog
  • Loading branch information
jackpot51 authored Jan 27, 2025
2 parents fbaf94f + 16d6316 commit bd592e3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3705,7 +3705,8 @@ impl Application for App {
},
auth_tx: auth_tx.clone(),
})
});
})
.on_submit(Message::DialogComplete);
if !id_assigned {
input = input.id(self.dialog_text_input.clone());
id_assigned = true;
Expand All @@ -3726,7 +3727,8 @@ impl Application for App {
},
auth_tx: auth_tx.clone(),
})
});
})
.on_submit(Message::DialogComplete);
if !id_assigned {
input = input.id(self.dialog_text_input.clone());
id_assigned = true;
Expand All @@ -3748,7 +3750,8 @@ impl Application for App {
},
auth_tx: auth_tx.clone(),
})
});
})
.on_submit(Message::DialogComplete);
if !id_assigned {
input = input.id(self.dialog_text_input.clone());
}
Expand Down

0 comments on commit bd592e3

Please sign in to comment.