diff --git a/modules/dashboard/Media.qml b/modules/dashboard/Media.qml index 22ed204b..ccb5f0c4 100644 --- a/modules/dashboard/Media.qml +++ b/modules/dashboard/Media.qml @@ -27,7 +27,7 @@ Item { property real playerProgress: { const active = Players.active; - return active?.length ? active.position / active.length : 0; + return active?.length ? (active.position % active.length) / active.length : 0; } function lengthStr(length: int): string { @@ -354,7 +354,7 @@ Item { anchors.left: parent.left - text: root.lengthStr(Players.active?.position ?? -1) + text: root.lengthStr(Players.active ? Players.active.position % Players.active.length : -1) color: Colours.palette.m3onSurfaceVariant font.pointSize: Tokens.font.size.small } diff --git a/modules/dashboard/dash/Media.qml b/modules/dashboard/dash/Media.qml index 777a24b9..b8e78abd 100644 --- a/modules/dashboard/dash/Media.qml +++ b/modules/dashboard/dash/Media.qml @@ -11,7 +11,7 @@ Item { property real playerProgress: { const active = Players.active; - return active?.length ? active.position / active.length : 0; + return active?.length ? (active.position % active.length) / active.length : 0; } anchors.top: parent.top