mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 19:46:50 +00:00
Change buttons
This commit is contained in:
parent
c5b844c9d2
commit
c57977943d
@ -32,10 +32,8 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, frame: &mut eframe::Fram
|
|||||||
|
|
||||||
ui.with_layout(Layout::right_to_left(Align::TOP), |ui| {
|
ui.with_layout(Layout::right_to_left(Align::TOP), |ui| {
|
||||||
if ui
|
if ui
|
||||||
.button(&format!(
|
.button(&format!("QM {}", desired_count))
|
||||||
"Query relays for {} missing events",
|
.on_hover_text("Query Relays for Missing Events")
|
||||||
desired_count
|
|
||||||
))
|
|
||||||
.clicked()
|
.clicked()
|
||||||
{
|
{
|
||||||
let tx = GLOBALS.to_overlord.clone();
|
let tx = GLOBALS.to_overlord.clone();
|
||||||
@ -47,7 +45,8 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, frame: &mut eframe::Fram
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ui
|
if ui
|
||||||
.button(&format!("Process {} incoming events", incoming_count))
|
.button(&format!("PQ {}", incoming_count))
|
||||||
|
.on_hover_text("Process Queue of Incoming Events")
|
||||||
.clicked()
|
.clicked()
|
||||||
{
|
{
|
||||||
let tx = GLOBALS.to_overlord.clone();
|
let tx = GLOBALS.to_overlord.clone();
|
||||||
@ -58,10 +57,10 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, frame: &mut eframe::Fram
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ui.button("▶ close all").clicked() {
|
if ui.button("close all").clicked() {
|
||||||
app.hides = feed.clone();
|
app.hides = feed.clone();
|
||||||
}
|
}
|
||||||
if ui.button("▼ open all").clicked() {
|
if ui.button("open all").clicked() {
|
||||||
app.hides.clear();
|
app.hides.clear();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user