Skip hiding already hidden tracks radio buttons

Does not change much, but removes some useless logging
This commit is contained in:
Rafał Dzięgiel
2021-09-09 22:08:20 +02:00
parent 928244dc32
commit b293a84df6

7
src/controls.js vendored
View File

@@ -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;