gui: add help text for electrum address

This commit is contained in:
Michael Mallan 2024-09-16 15:04:09 +01:00
parent ec3a799dc6
commit 0084163176
No known key found for this signature in database
GPG Key ID: 5177CDCEDB0EABEB
3 changed files with 10 additions and 1 deletions

View File

@ -30,7 +30,10 @@ use crate::{
view::{hw, warning::warn},
},
hw::HardwareWallet,
node::bitcoind::{RpcAuthType, RpcAuthValues},
node::{
bitcoind::{RpcAuthType, RpcAuthValues},
electrum,
},
};
pub fn list(cache: &Cache, is_remote_backend: bool) -> Element<Message> {
@ -591,6 +594,7 @@ pub fn electrum_edit<'a>(
.size(P1_SIZE)
.padding(5),
)
.push(text(electrum::ADDRESS_NOTES).size(P2_SIZE))
.spacing(5),
);

View File

@ -1382,6 +1382,7 @@ pub fn define_electrum<'a>(address: &form::Value<String>) -> Element<'a, Message
.size(text::P1_SIZE)
.padding(10),
)
.push(text(electrum::ADDRESS_NOTES).size(text::P2_SIZE))
.spacing(10);
Column::new().push(col_address).spacing(50).into()

View File

@ -5,6 +5,10 @@ pub enum ConfigField {
Address,
}
pub const ADDRESS_NOTES: &str = "Note: include \"ssl://\" as a prefix \
for SSL connections. Be aware that self-signed \
SSL certificates are currently not supported.";
impl fmt::Display for ConfigField {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {