reslove issue 717 about logo url and add coreelec support (#718)

This commit is contained in:
moli765
2025-03-22 23:19:54 +08:00
committed by GitHub
parent 275041247a
commit 95ca6bcfc9
4 changed files with 4 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ class _ServerDetailPageState extends State<ServerDetailPage>
if (logoUrl == null) return UIs.placeholder;
final dist = si.status.more[StatusCmdType.sys]?.dist;
if (dist == null) return UIs.placeholder;
if (dist == null && (logoUrl.contains('{DIST}') || logoUrl.contains('{BRIGHT}')) ) return UIs.placeholder;
logoUrl = logoUrl
.replaceFirst('{DIST}', dist.name)