default to menu

pull/6/head
dvkt 5 years ago
parent 4bf260c603
commit 62f6607639

@ -57,7 +57,7 @@ pub fn parse_url<'a>(url: &'a str) -> (Type, &'a str, &'a str, &'a str) {
let mut host = "";
let mut port = "70";
let mut sel = "/";
let mut typ = Type::Text;
let mut typ = Type::Menu;
let mut state = Parsing::Host;
let mut start = 0;

@ -77,7 +77,7 @@ impl UI {
match typ {
Type::Menu => self.add_view(MenuView::from(url, response)),
// Type::Text => self.add_view(TextView::from(url, response)),
_ => panic!("unknown type"),
_ => panic!("unknown type: {:?}", typ),
}
}

Loading…
Cancel
Save