Fix small bug with cache duration calculation

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-19 12:24:44 +01:00
parent 6b82280c14
commit ee41dda65a
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -74,7 +74,7 @@ class PlayerUIBottomBar extends StatelessWidget {
1000 *
99.999)
: 0.0;
if (cachedPercent > 100) {
if (0 < cachedPercent || cachedPercent > 100) {
cachedPercent = 0;
}
return Flex(