Added new improvements

This commit is contained in:
Robert Vokac 2024-02-03 21:16:23 +00:00
parent bf40a63615
commit fbc59ca376
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

View File

@ -420,7 +420,7 @@ public class TimeCalcWindow {
}
batteryForHour.setDonePercent(1 - ((minutesRemainsD%60d)/60d));
if(done < 1 && !nowIsWeekend) {
batteryForHour.setLabel("#" + ((int)(minutesRemainsD / 60d)));
batteryForHour.setLabel("#" + (minuteRemains == 0 ? minuteRemains / 60 : minuteRemains/ 60 + 1));
}
int totalSecondsRemains =