central evaluation of passed minutes

This commit is contained in:
2025-08-06 12:13:23 +02:00
parent f8e1b13ae5
commit d9553ace7a
2 changed files with 17 additions and 5 deletions

View File

@@ -302,7 +302,12 @@ public class LoadingBar extends AbstractProgressBar {
protected boolean hasMittagspauseArrived() {
return getStartTime().until(LocalTime.now(), ChronoUnit.MINUTES) < DEFAULT_NUMBER_WORK_MINS_BEFORE_LUNCH;
return hasMittagspauseArrived(false);
}
protected boolean hasMittagspauseArrived(boolean debugWithPassedMinutesZero) {
return getPassedMinutes(debugWithPassedMinutesZero) < DEFAULT_NUMBER_WORK_MINS_BEFORE_LUNCH;
}