ui/wallet: small refactor to use return instead of break

we don't need this weird break syntax when we're in a closure

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-25 12:04:38 -07:00
parent 009b4cf6b0
commit eb0ab75e87

View File

@@ -207,7 +207,7 @@ fn show_no_wallet(
state: &mut WalletUIState,
show_local_only: bool,
) -> Option<WalletAction> {
ui.horizontal_wrapped(|ui| 's: {
ui.horizontal_wrapped(|ui| {
let text_edit = egui::TextEdit::singleline(&mut state.buf)
.hint_text(
egui::RichText::new(tr!(
@@ -226,7 +226,7 @@ fn show_no_wallet(
ui.add(text_edit);
let Some(error_msg) = &state.error_msg else {
break 's;
return;
};
let error_str = match error_msg {