Recycle old position scale adjustment

This commit is contained in:
Rafostar
2020-08-31 23:11:34 +02:00
parent f70fe43303
commit bf35da6b91

View File

@@ -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);
} }