aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorTrim Bresilla2024-12-03 02:23:09 +0100
committerlukeflo2024-12-23 21:03:19 +0100
commit98deb23810ba4142082f82939f25d44d3094a34f (patch)
treeb9c1a4ca4845d83f0882c5397f067f116b1202ae /src/app.rs
parent86d48aa48b9951b6cbc471113844d16683051f8f (diff)
downloadbibiman-98deb23810ba4142082f82939f25d44d3094a34f.tar.gz
bibiman-98deb23810ba4142082f82939f25d44d3094a34f.zip
feat: finalize basic "AddEntry" to add from DOI
- Modify the `handle_new_entry_submission` method to accept additional arguments. - Add error handling for failed inserts when appending to the file. - Introduce a new method `append_to_file` to handle file appending logic. - Update file handling to ensure new entries are correctly written to the specified file.
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.rs b/src/app.rs
index ae45355..a200448 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -108,7 +108,7 @@ impl App {
}
KeyCode::Enter => {
// Handle submission of the new entry
- self.bibiman.handle_new_entry_submission();
+ self.bibiman.handle_new_entry_submission(args);
self.bibiman.close_popup();
self.input_mode = false;
}