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/tui/ui.rs | |
| parent | bf93bbee1b59c9804a01a7476e12264bbbcf5f40 (diff) | |
| download | bibiman-6ff6b82e0fcea4344db8b17ea5be2d72b3d9d9f2.tar.gz bibiman-6ff6b82e0fcea4344db8b17ea5be2d72b3d9d9f2.zip | |
better error messages for doi-add
Diffstat (limited to 'src/tui/ui.rs')
| -rw-r--r-- | src/tui/ui.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tui/ui.rs b/src/tui/ui.rs index 6a3b8de..4f64338 100644 --- a/src/tui/ui.rs +++ b/src/tui/ui.rs @@ -283,7 +283,7 @@ pub fn render_popup(app: &mut App, args: &CLIArgs, frame: &mut Frame) { frame.render_widget(Clear, popup_area); frame.render_widget(&content, popup_area) } - Some(PopupKind::SelectRes) | Some(PopupKind::SelectFile) => { + Some(PopupKind::OpenRes) | Some(PopupKind::AppendToFile) => { let list_items: Vec<ListItem> = app .bibiman .popup_area @@ -292,9 +292,9 @@ pub fn render_popup(app: &mut App, args: &CLIArgs, frame: &mut Frame) { .map(|item| ListItem::from(item.to_owned())) .collect(); - let title = if let Some(PopupKind::SelectRes) = app.bibiman.popup_area.popup_kind { + let title = if let Some(PopupKind::OpenRes) = app.bibiman.popup_area.popup_kind { " Open " - } else if let Some(PopupKind::SelectFile) = app.bibiman.popup_area.popup_kind { + } else if let Some(PopupKind::AppendToFile) = app.bibiman.popup_area.popup_kind { " Select file to append entry " } else { " Select " |
