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