mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-03-31 16:35:28 +00:00
implement list reload method; reload list on enable request
This commit is contained in:
parent
a27d7a4ab8
commit
d52b580844
4 changed files with 55 additions and 18 deletions
|
|
@ -38,3 +38,12 @@ impl FromStr for Source {
|
|||
Source::from_str(s)
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Display for Source {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
Self::Path(path) => write!(f, "{}", path.to_string_lossy()),
|
||||
Self::Url(url) => write!(f, "{url}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue