aboutsummaryrefslogtreecommitdiff
path: root/src/bibiman.rs
diff options
context:
space:
mode:
authorlukeflo2025-06-29 20:31:41 +0200
committerlukeflo2025-06-29 20:31:41 +0200
commitae1667410b0a812fff8d464251548f23f88ae024 (patch)
tree55569dfcd3c1b1a94537fcf30b1cea98c428f9f2 /src/bibiman.rs
parent40629e0c2dc62bfb1786cb1c18bc68ed4c23e9ac (diff)
downloadbibiman-ae1667410b0a812fff8d464251548f23f88ae024.tar.gz
bibiman-ae1667410b0a812fff8d464251548f23f88ae024.zip
some more tests for notes, need to elaborate function for opening notes
Diffstat (limited to 'src/bibiman.rs')
-rw-r--r--src/bibiman.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bibiman.rs b/src/bibiman.rs
index 96a733c..1f19b24 100644
--- a/src/bibiman.rs
+++ b/src/bibiman.rs
@@ -692,12 +692,11 @@ impl Bibiman {
None,
)?;
}
- }
- if self.popup_area.popup_list[popup_idx].0.contains("Note") {
+ } else if self.popup_area.popup_list[popup_idx].0.contains("Note") {
let file = expand_home(&PathBuf::from(popup_entry.clone()));
// let object: OsString = popup_entry.into();
if file.is_file() {
- app::open_connected_file(cfg, &file.into_os_string())?;
+ app::open_connected_note(cfg, &file.into_os_string())?;
self.close_popup();
} else {
self.open_popup(