aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/app.rs b/src/app.rs
index d10e4f8..5f2d16b 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -343,7 +343,8 @@ impl App {
.unwrap();
let entry = self.bibiman.entry_table.entry_table_items[idx].clone();
let mut items: Vec<(String, String)> = vec![];
- if entry.filepath.is_some() || entry.doi_url.is_some() {
+ if entry.filepath.is_some() || entry.doi_url.is_some() || entry.notes.is_some()
+ {
if entry.doi_url.is_some() {
items.push((
"Weblink (DOI/URL): ".into(),
@@ -370,6 +371,11 @@ impl App {
))
});
}
+ if entry.notes.is_some() {
+ entry.notes.unwrap().iter().for_each(|n| {
+ items.push(("Note: ".into(), n.clone().into_string().unwrap()));
+ });
+ }
self.bibiman
.open_popup(PopupKind::OpenRes, None, None, Some(items))?;