implement list reload method; reload list on enable request

This commit is contained in:
yggverse 2026-03-28 05:31:23 +02:00
parent a27d7a4ab8
commit d52b580844
4 changed files with 55 additions and 18 deletions

View file

@ -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}"),
}
}
}