aboutsummaryrefslogtreecommitdiff
path: root/src/tui/popup.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/popup.rs')
-rw-r--r--src/tui/popup.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tui/popup.rs b/src/tui/popup.rs
index a0a61a4..f3f6d58 100644
--- a/src/tui/popup.rs
+++ b/src/tui/popup.rs
@@ -46,7 +46,7 @@ pub struct PopupArea {
pub popup_kind: Option<PopupKind>,
pub popup_message: String,
pub popup_scroll_pos: u16,
- pub popup_list: Vec<String>,
+ pub popup_list: Vec<(String, String)>,
pub popup_state: ListState,
pub popup_sel_item: String,
// pub add_entry_input: String,
@@ -138,8 +138,8 @@ impl PopupArea {
/// Opens a popup with a selectable list
///
- /// The list items are passed as argument of the kind `Vec<String>`.
- pub fn popup_selection(&mut self, items: Vec<String>) {
+ /// The list items are passed as argument of the kind `Vec<(String, String)>`.
+ pub fn popup_selection(&mut self, items: Vec<(String, String)>) {
self.popup_list = items;
// self.popup_kind = Some(PopupKind::SelectRes);
self.is_popup = true;