mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 11:54:59 -04:00
eros: properly clear favicon when server does not send it
This commit is contained in:
parent
b40e465555
commit
ae873cec5d
@ -93,9 +93,17 @@ class ServerCardController : AbstractCardController<ServerCard>(), WatcherRefere
|
||||
playerCountFX.ctext = "${it.status.usedSlots?.thousands()} / ${it.status.slots?.thousands()}"
|
||||
serverVersionFX.ctext = it.connection.serverVersion?.name
|
||||
|
||||
faviconFX.image = it.status.favicon?.let { favicon -> Image(ByteArrayInputStream(favicon)) } ?: JavaFXUtil.MINOSOFT_LOGO
|
||||
val favicon = it.status.favicon
|
||||
|
||||
if (favicon == null) {
|
||||
item.server.faviconHash = null
|
||||
} else {
|
||||
DefaultThreadPool += { item.server.saveFavicon(favicon) } // ToDo: This is running every event?
|
||||
}
|
||||
|
||||
faviconFX.image = favicon?.let { Image(ByteArrayInputStream(favicon)) } ?: JavaFXUtil.MINOSOFT_LOGO
|
||||
|
||||
|
||||
it.status.favicon?.let { favicon -> DefaultThreadPool += { item.server.saveFavicon(favicon) } } // ToDo: This is running every event?
|
||||
serverList?.onPingUpdate(item)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user