diff options
| author | lukeflo | 2024-12-23 19:07:24 +0100 |
|---|---|---|
| committer | lukeflo | 2024-12-23 21:03:19 +0100 |
| commit | 6ff6b82e0fcea4344db8b17ea5be2d72b3d9d9f2 (patch) | |
| tree | 9b388462c25c39186a52cef047d651a728d4369c /src/bibiman.rs | |
| parent | bf93bbee1b59c9804a01a7476e12264bbbcf5f40 (diff) | |
| download | bibiman-6ff6b82e0fcea4344db8b17ea5be2d72b3d9d9f2.tar.gz bibiman-6ff6b82e0fcea4344db8b17ea5be2d72b3d9d9f2.zip | |
better error messages for doi-add
Diffstat (limited to 'src/bibiman.rs')
| -rw-r--r-- | src/bibiman.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bibiman.rs b/src/bibiman.rs index 0dc64e0..5d6aa30 100644 --- a/src/bibiman.rs +++ b/src/bibiman.rs @@ -133,14 +133,14 @@ impl Bibiman { if let Ok(entry) = new_entry { // Save generated bibtex entry in structs field self.popup_area.popup_sel_item = entry; - self.popup_area.popup_kind = Some(PopupKind::SelectFile); + self.popup_area.popup_kind = Some(PopupKind::AppendToFile); self.append_to_file(args); self.former_area = Some(FormerArea::EntryArea); self.current_area = CurrentArea::PopupArea; self.popup_area.popup_state.select(Some(0)) } else { self.popup_area - .popup_message("Failed to add new entry", "", false); + .popup_message("Can't find DOI: ", &doi_string, false); } } |
