diff --git a/src/controls.js b/src/controls.js index 82b0dfad..575ee60e 100644 --- a/src/controls.js +++ b/src/controls.js @@ -161,9 +161,10 @@ class ClapperControls extends Gtk.Box while(child || i < array.length) { if(i >= array.length) { - debug(`hiding unused ${child.type} checkButton nr: ${i}`); - child.visible = false; - + if(child.visible) { + debug(`hiding unused ${child.type} checkButton nr: ${i}`); + child.visible = false; + } i++; child = child.get_next_sibling(); continue;