aboutsummaryrefslogtreecommitdiff
path: root/src/bibiman.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bibiman.rs')
-rw-r--r--src/bibiman.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bibiman.rs b/src/bibiman.rs
index 10dab1e..4e6e5e8 100644
--- a/src/bibiman.rs
+++ b/src/bibiman.rs
@@ -123,8 +123,8 @@ impl Bibiman {
self.popup_area.popup_kind = Some(PopupKind::AddEntry);
}
- pub fn handle_new_entry_submission(&mut self, args: &CLIArgs) {
- let new_entry_title = self.popup_area.add_entry_input.trim();
+ pub fn handle_new_entry_submission(&mut self, args: &CLIArgs, doi_string: &Input) {
+ let new_entry_title = doi_string.value();
let doi2bib = doi2bib::Doi2Bib::new().unwrap();
let new_entry_future = doi2bib.resolve_doi(new_entry_title);
let new_entry = block_on(new_entry_future);