gui(installer): implement Default for DefineElectrum
This commit is contained in:
parent
530a8c50f5
commit
6349df95d3
@ -14,16 +14,14 @@ use crate::{
|
||||
node::electrum::ConfigField,
|
||||
};
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Default)]
|
||||
pub struct DefineElectrum {
|
||||
address: form::Value<String>,
|
||||
}
|
||||
|
||||
impl DefineElectrum {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
address: form::Value::default(),
|
||||
}
|
||||
Self::default()
|
||||
}
|
||||
|
||||
pub fn can_try_ping(&self) -> bool {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user