gui(settings): add a copy button for electrum server address
This commit is contained in:
parent
46cb154b94
commit
9679f0f292
@ -469,6 +469,7 @@ impl ElectrumSettings {
|
||||
});
|
||||
}
|
||||
}
|
||||
view::SettingsEditMessage::Clipboard(text) => return clipboard::write(text),
|
||||
_ => {}
|
||||
};
|
||||
Command::none()
|
||||
|
||||
@ -697,7 +697,14 @@ pub fn electrum<'a>(
|
||||
col_fields = col_fields.push(
|
||||
Row::new()
|
||||
.push(Container::new(text(k).bold().small()).width(Length::Fill))
|
||||
.push(text(v).small()),
|
||||
.push(text(v.clone()).small())
|
||||
.push(Space::with_width(10))
|
||||
.push(
|
||||
Button::new(icon::clipboard_icon())
|
||||
.style(theme::Button::TransparentBorder)
|
||||
.on_press(SettingsEditMessage::Clipboard(v.to_string())),
|
||||
)
|
||||
.align_items(Alignment::Center),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user