fn ui_refresh_tagsview(siv: &mut Cursive, state: &mut AppState) {
    siv.call_on_id("tagsview", |v: &mut SelectView<PathBuf>| {
        v.clear();
        for (p, t) in state.tags.iter() {
            v.add_item(t.name.clone(), p.clone());
        }
        v.sort_by_label();
    });

    ui_mark_tagsview(siv, state);
}
/// Refresh UI after an update to the tags index
Refresh UI after an update to the tags index
Refresh UI after an update to the tags index
fn ui_refresh_tagsview(siv: &mut Cursive, state: &mut AppState) {
    siv.call_on_id("tagsview", |v: &mut SelectView<PathBuf>| {
        v.clear();
        for (p, t) in state.tags.iter() {
            v.add_item(t.name.clone(), p.clone());
        }
        v.sort_by_label();
    });
    ui_mark_tagsview(siv, state);
}
fn ui_refresh_tagsview ( siv : & mut Cursive , state : & mut AppState ) { siv . call_on_id ( " " , | v : & mut SelectView < PathBuf > | { v . clear ( ) ; for ( p , t ) in state . tags . iter ( ) { v . add_item ( t . name . clone ( ) , p . clone ( ) ) ; } v . sort_by_label ( ) ; } ) ; ui_mark_tagsview ( siv , state ) ; }
Refresh UI after an update to the tags index
Refresh UI after an update to the tags index
siv
&mut Cursive
state
&mut AppState