From e35d18505ebdbd09c39b18eb83bc6ff3f1e6db97 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Mon, 31 Aug 2020 23:13:47 +0200 Subject: [PATCH] Use else-if --- clapper_src/controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clapper_src/controls.js b/clapper_src/controls.js index 031034b7..124d4f77 100644 --- a/clapper_src/controls.js +++ b/clapper_src/controls.js @@ -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%');