mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
Add preferences dialog
Allows customizing various settings. For now it includes player seeking times and mode customization. More options will be added in the future.
This commit is contained in:
@@ -322,17 +322,8 @@ var Widget = GObject.registerClass({
|
||||
if(this.controls.currentDuration === duration)
|
||||
return;
|
||||
|
||||
let increment = (duration < 1)
|
||||
? 0
|
||||
: (duration < 100)
|
||||
? 1
|
||||
: duration / 100;
|
||||
|
||||
this.controls.positionAdjustment.set_upper(duration);
|
||||
this.controls.positionAdjustment.set_step_increment(increment);
|
||||
this.controls.positionAdjustment.set_page_increment(increment);
|
||||
|
||||
this.controls.currentDuration = duration;
|
||||
this.controls.positionAdjustment.set_upper(duration);
|
||||
this.controls.durationFormated = Misc.getFormatedTime(duration);
|
||||
this.controls.updateElapsedLabel();
|
||||
}
|
||||
@@ -341,7 +332,7 @@ var Widget = GObject.registerClass({
|
||||
{
|
||||
if(
|
||||
!this.isSeekable
|
||||
|| this.controls.isPositionSeeking
|
||||
|| this.controls.isPositionDragging
|
||||
|| !player.seek_done
|
||||
)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user