Change buttons

This commit is contained in:
Mike Dilger 2023-01-02 11:30:36 +13:00
parent c5b844c9d2
commit c57977943d

View File

@ -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();
} }
}); });