From 116dc4dd20b7e90986516b53288fe80e7e4fa7ff Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Wed, 2 Sep 2020 09:12:17 +0200 Subject: [PATCH] Destroy removed volume control buttons --- clapper_src/controls.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clapper_src/controls.js b/clapper_src/controls.js index 629dba4e..3b0c636c 100644 --- a/clapper_src/controls.js +++ b/clapper_src/controls.js @@ -73,8 +73,10 @@ class ClapperControls extends Gtk.HBox let boxChildren = box.get_children(); for(let child of boxChildren) { - if(child.constructor === Gtk.Button) + if(child.constructor === Gtk.Button) { box.remove(child); + child.destroy(); + } else if(child.constructor === Gtk.Scale) { child.height_request = 200; child.round_digits = 2;