|
|
@ -89,7 +89,7 @@ class JackTransportControls(object): |
|
|
|
if self.visible: #optimisation |
|
|
|
realPercent = seconds / self.currentMaximumInSeconds |
|
|
|
progressPercent = realPercent * 100 * self.resolutionFactor #100 because that is 0.xy -> xy% ) |
|
|
|
rogressPercent = int(progressPercent) |
|
|
|
progressPercent = int(progressPercent) |
|
|
|
prettyTime = str(timedelta(seconds=int(seconds))) #timedelta without int will print microseconds |
|
|
|
if self.currentMaximumInSeconds < 3600: #less than an hour |
|
|
|
prettyTime = prettyTime[2:] |
|
|
|