Do not show hours when duration is shorter #14

This commit is contained in:
Rafostar
2020-11-20 22:41:33 +01:00
parent 7ccd6ad424
commit c221f7cdb6
3 changed files with 17 additions and 9 deletions

View File

@@ -437,8 +437,10 @@ var Widget = GObject.registerClass({
return;
this.controls.currentDuration = duration;
this.controls.showHours = (duration >= 3600);
this.controls.positionAdjustment.set_upper(duration);
this.controls.durationFormated = Misc.getFormatedTime(duration);
this.controls.durationFormatted = Misc.getFormattedTime(duration);
this.controls.updateElapsedLabel();
}