Fix volume button icon and window key events

This commit is contained in:
Rafostar
2020-10-07 18:18:44 +02:00
parent 041b31c161
commit 352eff89b7
4 changed files with 29 additions and 34 deletions

View File

@@ -453,16 +453,12 @@ class ClapperInterface extends Gtk.Grid
: 'overamplified';
let iconName = `audio-volume-${icon}-symbolic`;
/*
if(this.controls.volumeButton.image.icon_name !== iconName)
if(this.controls.volumeButton.icon_name !== iconName)
{
debug(`set volume icon: ${icon}`);
this.controls.volumeButton.image.set_from_icon_name(
iconName,
this.controls.volumeButton.image.icon_size
);
this.controls.volumeButton.set_icon_name(iconName);
}
*/
if(volume === this.lastVolumeValue)
return;