diff options
Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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))?; |
