fn ui_submit_itemdir(siv: &mut Cursive, p: &str) {
    do_app(siv, |_, state| scan_items(state, p));
    siv.pop_layer();
    siv.add_layer(ui_input_dialog(
        "Tags directory:",
        "tagdir",
        "tags",
        ui_submit_tagdir,
    ));
}
/// UI callback for items dir path dialog
UI callback for items dir path dialog
UI callback for items dir path dialog
fn ui_submit_itemdir(siv: &mut Cursive, p: &str) {
    do_app(siv, |_, state| scan_items(state, p));
    siv.pop_layer();
    siv.add_layer(ui_input_dialog(
        "Tags directory:",
        "tagdir",
        "tags",
        ui_submit_tagdir,
    ));
}
fn ui_submit_itemdir ( siv : & mut Cursive , p : & str ) { do_app ( siv , | _ , state | scan_items ( state , p ) ) ; siv . pop_layer ( ) ; siv . add_layer ( ui_input_dialog ( " " , " " , " " , ui_submit_tagdir , ) ) ; }
UI callback for items dir path dialog
UI callback for items dir path dialog
siv
&mut Cursive
p
&str