mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Recycle old position scale adjustment
This commit is contained in:
@@ -68,11 +68,10 @@ class ClapperInterface extends Gtk.Grid
|
|||||||
? 1
|
? 1
|
||||||
: duration / 100;
|
: duration / 100;
|
||||||
|
|
||||||
let adjustment = new Gtk.Adjustment({
|
let adjustment = this.controls.positionScale.get_adjustment();
|
||||||
upper: duration,
|
adjustment.set_upper(duration);
|
||||||
step_increment: increment,
|
adjustment.set_step_increment(increment);
|
||||||
page_increment: increment
|
adjustment.set_page_increment(increment);
|
||||||
});
|
|
||||||
this.controls.positionScale.set_adjustment(adjustment);
|
this.controls.positionScale.set_adjustment(adjustment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user