ui improvement
This commit is contained in:
parent
c4b66aad36
commit
3b54c2f8bd
@ -200,21 +200,6 @@ impl UI {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// fn main_layout(s: &mut Cursive) -> ViewRef<LinearLayout> {
|
|
||||||
// s.find_name("main-layout").unwrap()
|
|
||||||
// }
|
|
||||||
// fn column_layout(s: &mut Cursive) -> ViewRef<LinearLayout> {
|
|
||||||
// s.find_name("column-layout").unwrap()
|
|
||||||
// }
|
|
||||||
// fn button_layout(s: &mut Cursive) -> ViewRef<LinearLayout> {
|
|
||||||
// s.find_name("button-layout").unwrap()
|
|
||||||
// }
|
|
||||||
// fn peers(s: &mut Cursive) -> ViewRef<TextView> {
|
|
||||||
// s.find_name("peers").unwrap()
|
|
||||||
// }
|
|
||||||
// fn node_events(s: &mut Cursive) -> ViewRef<FlexiLoggerView> {
|
|
||||||
// s.find_name("node-events").unwrap()
|
|
||||||
// }
|
|
||||||
fn command_line(s: &mut Cursive) -> ViewRef<EditView> {
|
fn command_line(s: &mut Cursive) -> ViewRef<EditView> {
|
||||||
s.find_name("command-line").unwrap()
|
s.find_name("command-line").unwrap()
|
||||||
}
|
}
|
||||||
@ -482,10 +467,15 @@ impl UI {
|
|||||||
inner.connection_dialog_state = Some(state);
|
inner.connection_dialog_state = Some(state);
|
||||||
drop(inner);
|
drop(inner);
|
||||||
if hide {
|
if hide {
|
||||||
|
s.pop_layer();
|
||||||
s.pop_layer();
|
s.pop_layer();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if show {
|
if show {
|
||||||
|
s.add_fullscreen_layer(Layer::with_color(
|
||||||
|
ResizedView::with_full_screen(DummyView {}),
|
||||||
|
ColorStyle::new(PaletteColor::Background, PaletteColor::Background),
|
||||||
|
));
|
||||||
s.add_layer(
|
s.add_layer(
|
||||||
Dialog::around(
|
Dialog::around(
|
||||||
LinearLayout::vertical().child(
|
LinearLayout::vertical().child(
|
||||||
|
@ -36,7 +36,7 @@ impl RawUdpProtocolHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
trace!(
|
trace!(
|
||||||
"receiving message of length {} from {}",
|
"receiving UDP message of length {} from {}",
|
||||||
data.len(),
|
data.len(),
|
||||||
remote_addr
|
remote_addr
|
||||||
);
|
);
|
||||||
@ -67,7 +67,7 @@ impl RawUdpProtocolHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
trace!(
|
trace!(
|
||||||
"sending message of length {} to {}",
|
"sending UDP message of length {} to {}",
|
||||||
data.len(),
|
data.len(),
|
||||||
socket_addr
|
socket_addr
|
||||||
);
|
);
|
||||||
|
@ -89,13 +89,13 @@ macro_rules! map_error_panic {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum Destination {
|
pub enum Destination {
|
||||||
Direct(NodeRef),
|
Direct(NodeRef),
|
||||||
PrivateRoute(PrivateRoute),
|
PrivateRoute(PrivateRoute),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum RespondTo {
|
pub enum RespondTo {
|
||||||
None,
|
None,
|
||||||
Sender,
|
Sender,
|
||||||
@ -320,6 +320,7 @@ impl RPCProcessor {
|
|||||||
|
|
||||||
if nr.node_id() != node_id {
|
if nr.node_id() != node_id {
|
||||||
// found a close node, but not exact within our configured resolve_node timeout
|
// found a close node, but not exact within our configured resolve_node timeout
|
||||||
|
error!("XXX: Timeout");
|
||||||
return Err(RPCError::Timeout);
|
return Err(RPCError::Timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user