From b293a84df655adfe7005aa65751c14e4a41621dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Thu, 9 Sep 2021 22:08:20 +0200 Subject: [PATCH] Skip hiding already hidden tracks radio buttons Does not change much, but removes some useless logging --- src/controls.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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;