mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
Do not show hours when duration is shorter #14
This commit is contained in:
9
clapper_src/controls.js
vendored
9
clapper_src/controls.js
vendored
@@ -27,8 +27,9 @@ class ClapperControls extends Gtk.Box
|
||||
this.currentDuration = 0;
|
||||
this.isPositionDragging = false;
|
||||
|
||||
this.durationFormated = '00:00:00';
|
||||
this.elapsedInitial = '00:00:00/00:00:00';
|
||||
this.showHours = false;
|
||||
this.durationFormatted = '00:00';
|
||||
this.elapsedInitial = '00:00/00:00';
|
||||
this.buttonsArr = [];
|
||||
|
||||
this._addTogglePlayButton();
|
||||
@@ -98,8 +99,8 @@ class ClapperControls extends Gtk.Box
|
||||
{
|
||||
value = value || 0;
|
||||
|
||||
let elapsed = Misc.getFormatedTime(value)
|
||||
+ '/' + this.durationFormated;
|
||||
let elapsed = Misc.getFormattedTime(value, this.showHours)
|
||||
+ '/' + this.durationFormatted;
|
||||
|
||||
this.elapsedButton.set_label(elapsed);
|
||||
}
|
||||
|
Reference in New Issue
Block a user