Now bookmarks and recents are sorted in the UI (bookmarks are sorted by name; recents are sorted by connection datetime)

This commit is contained in:
veeso
2021-02-25 16:15:06 +01:00
parent 669fd23868
commit af830d603d
4 changed files with 71 additions and 50 deletions

View File

@@ -115,7 +115,9 @@ pub struct AuthActivity {
input_txt: String, // Input text
choice_opt: DialogYesNoOption, // Dialog popup selected option
bookmarks_idx: usize, // Index of selected bookmark
bookmarks_list: Vec<String>, // List of bookmarks
recents_idx: usize, // Index of selected recent
recents_list: Vec<String>, // list of recents
}
impl Default for AuthActivity {
@@ -149,7 +151,9 @@ impl AuthActivity {
input_txt: String::new(),
choice_opt: DialogYesNoOption::Yes,
bookmarks_idx: 0,
bookmarks_list: Vec::new(),
recents_idx: 0,
recents_list: Vec::new(),
}
}