Use else-if

This commit is contained in:
Rafostar
2020-08-31 23:13:47 +02:00
parent bf35da6b91
commit e35d18505e

View File

@@ -84,7 +84,7 @@ class ClapperControls extends Gtk.HBox
for(let child of boxChildren) {
if(child.constructor === Gtk.Button)
box.remove(child);
if(child.constructor === Gtk.Scale) {
else if(child.constructor === Gtk.Scale) {
child.height_request = 200;
child.add_mark(0, Gtk.PositionType.LEFT, '0%');
child.add_mark(1, Gtk.PositionType.LEFT, '100%');