mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 19:46:50 +00:00
close-all and open-all buttons
This commit is contained in:
parent
aeab1e98b1
commit
ac49a8828d
@ -21,7 +21,6 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, frame: &mut eframe::Fram
|
|||||||
let incoming_count = GLOBALS.incoming_events.blocking_read().len();
|
let incoming_count = GLOBALS.incoming_events.blocking_read().len();
|
||||||
|
|
||||||
ui.with_layout(Layout::right_to_left(Align::TOP), |ui| {
|
ui.with_layout(Layout::right_to_left(Align::TOP), |ui| {
|
||||||
ui.with_layout(Layout::top_down(Align::Max), |ui| {
|
|
||||||
if ui
|
if ui
|
||||||
.button(&format!(
|
.button(&format!(
|
||||||
"Query relays for {} missing events",
|
"Query relays for {} missing events",
|
||||||
@ -36,9 +35,7 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, frame: &mut eframe::Fram
|
|||||||
json_payload: serde_json::to_string("").unwrap(),
|
json_payload: serde_json::to_string("").unwrap(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
ui.with_layout(Layout::top_down(Align::Max), |ui| {
|
|
||||||
if ui
|
if ui
|
||||||
.button(&format!("Process {} incoming events", incoming_count))
|
.button(&format!("Process {} incoming events", incoming_count))
|
||||||
.clicked()
|
.clicked()
|
||||||
@ -50,7 +47,13 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, frame: &mut eframe::Fram
|
|||||||
json_payload: serde_json::to_string("").unwrap(),
|
json_payload: serde_json::to_string("").unwrap(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
if ui.button("▶ close all" ).clicked() {
|
||||||
|
app.hides = feed.clone();
|
||||||
|
}
|
||||||
|
if ui.button("▼ open all").clicked() {
|
||||||
|
app.hides.clear();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ui.vertical(|ui| {
|
ui.vertical(|ui| {
|
||||||
|
Loading…
Reference in New Issue
Block a user