Skip to content

Commit

Permalink
Fix photonvision camera streams not adding
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Oct 30, 2023
1 parent 37e16c8 commit 60e95da
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/widgets/network_tree/tree_row.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,16 @@ class TreeRow {
return await getTypedWidget('$topic/.type');
}

bool isCameraStream = hasRows([
'mode',
'modes',
'source',
'streams',
]) &&
(hasRow('description') || hasRow('connected'));

// If it's a camera stream
if (hasRows([
'description',
'mode',
'modes',
'source',
'streams',
])) {
if (isCameraStream) {
return CameraStreamWidget(key: UniqueKey(), topic: topic);
}

Expand Down

0 comments on commit 60e95da

Please sign in to comment.