Compare commits

...

1 commit
main ... Beta

Author SHA1 Message Date
9de1e90d6e yes 2024-10-14 19:12:26 -04:00
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ class _SessionListState extends State<SessionList> with AutomaticKeepAliveClient
children: [
Expanded(
child: Text(
"${session.sessionUsers.length.toString().padLeft(2, "0")}/${session.maxUsers.toString().padLeft(2, "0")} Online",
"${(session.sessionUsers.length - (!session.headlessHost ?0 :1)).toString().padLeft(2, "0")}/${session.maxUsers.toString().padLeft(2, "0")} Online",
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodySmall?.copyWith(

View file

@ -162,7 +162,7 @@ class _SessionViewState extends State<SessionView> {
ListSectionHeader(
leadingText: "Users",
trailingText:
"${session.sessionUsers.length.toString().padLeft(2, "0")}/${session.maxUsers.toString().padLeft(2, "0")}",
"${(session.sessionUsers.length - (!session.headlessHost ?0 :1)).toString().padLeft(2, "0")}/${session.maxUsers.toString().padLeft(2, "0")}",
showLine: false,
),
],