mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
Use else-if
This commit is contained in:
2
clapper_src/controls.js
vendored
2
clapper_src/controls.js
vendored
@@ -84,7 +84,7 @@ class ClapperControls extends Gtk.HBox
|
|||||||
for(let child of boxChildren) {
|
for(let child of boxChildren) {
|
||||||
if(child.constructor === Gtk.Button)
|
if(child.constructor === Gtk.Button)
|
||||||
box.remove(child);
|
box.remove(child);
|
||||||
if(child.constructor === Gtk.Scale) {
|
else if(child.constructor === Gtk.Scale) {
|
||||||
child.height_request = 200;
|
child.height_request = 200;
|
||||||
child.add_mark(0, Gtk.PositionType.LEFT, '0%');
|
child.add_mark(0, Gtk.PositionType.LEFT, '0%');
|
||||||
child.add_mark(1, Gtk.PositionType.LEFT, '100%');
|
child.add_mark(1, Gtk.PositionType.LEFT, '100%');
|
||||||
|
Reference in New Issue
Block a user