mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Destroy removed volume control buttons
This commit is contained in:
4
clapper_src/controls.js
vendored
4
clapper_src/controls.js
vendored
@@ -73,8 +73,10 @@ class ClapperControls extends Gtk.HBox
|
|||||||
let boxChildren = box.get_children();
|
let boxChildren = box.get_children();
|
||||||
|
|
||||||
for(let child of boxChildren) {
|
for(let child of boxChildren) {
|
||||||
if(child.constructor === Gtk.Button)
|
if(child.constructor === Gtk.Button) {
|
||||||
box.remove(child);
|
box.remove(child);
|
||||||
|
child.destroy();
|
||||||
|
}
|
||||||
else if(child.constructor === Gtk.Scale) {
|
else if(child.constructor === Gtk.Scale) {
|
||||||
child.height_request = 200;
|
child.height_request = 200;
|
||||||
child.round_digits = 2;
|
child.round_digits = 2;
|
||||||
|
Reference in New Issue
Block a user