aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app.rs
diff options
context:
space:
mode:
authorlukeflo2024-10-19 21:30:37 +0200
committerlukeflo2024-10-19 21:30:37 +0200
commit8beb373c4a587cdcea772f725f51c2ff2db7273d (patch)
tree184e429f9ccc95437d6b7fb74baeaafd9610ca88 /src/frontend/app.rs
parentb5538d8c8408f1afbcfecb2a3b0407c3ad53ebe5 (diff)
downloadbibiman-8beb373c4a587cdcea772f725f51c2ff2db7273d.tar.gz
bibiman-8beb373c4a587cdcea772f725f51c2ff2db7273d.zip
reinvent BibiData, start integrating yaml
Diffstat (limited to 'src/frontend/app.rs')
-rw-r--r--src/frontend/app.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/frontend/app.rs b/src/frontend/app.rs
index 10cfa9b..822c6f0 100644
--- a/src/frontend/app.rs
+++ b/src/frontend/app.rs
@@ -76,7 +76,7 @@ impl App {
let main_biblio = BibiMain::new(main_bibfile.clone());
let tag_list = TagList::new(main_biblio.keyword_list.clone());
let search_struct = BibiSearch::default();
- let entry_table = EntryTable::new(&main_biblio.citekeys, &main_biblio.bibliography);
+ let entry_table = EntryTable::new(main_biblio.entry_list.clone());
let current_area = CurrentArea::EntryArea;
Ok(Self {
running,
@@ -127,8 +127,7 @@ impl App {
self.main_biblio = BibiMain::new(self.main_bibfile.clone());
// self.tag_list = TagList::from_iter(self.main_biblio.keyword_list.clone());
self.tag_list = TagList::new(self.main_biblio.keyword_list.clone());
- self.entry_table =
- EntryTable::new(&self.main_biblio.citekeys, &self.main_biblio.bibliography);
+ self.entry_table = EntryTable::new(self.main_biblio.entry_list.clone());
}
// Toggle moveable list between entries and tags
@@ -152,8 +151,7 @@ impl App {
}
pub fn reset_current_list(&mut self) {
- self.entry_table =
- EntryTable::new(&self.main_biblio.citekeys, &self.main_biblio.bibliography);
+ self.entry_table = EntryTable::new(self.main_biblio.entry_list.clone());
self.tag_list = TagList::new(self.main_biblio.keyword_list.clone());
if let CurrentArea::TagArea = self.current_area {
self.tag_list.tag_list_state.select(Some(0))