From 98deb23810ba4142082f82939f25d44d3094a34f Mon Sep 17 00:00:00 2001 From: Trim Bresilla Date: Tue, 3 Dec 2024 02:23:09 +0100 Subject: 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. --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app.rs') 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; } -- cgit v1.2.3