Skip to content

Commit

Permalink
InputPanel: set volume scale sensitive based on device
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Jun 19, 2023
1 parent 9cdf932 commit 6e2bda9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InputPanel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ public class Sound.InputPanel : Gtk.Box {
default_changed ();
});

volume_switch.bind_property ("active", volume_scale, "sensitive", BindingFlags.DEFAULT);

connect_signals ();
}

Expand Down Expand Up @@ -152,6 +150,8 @@ public class Sound.InputPanel : Gtk.Box {
if (volume_switch.active == default_device.is_muted) {
volume_switch.activate ();
}

volume_scale.sensitive = !default_device.is_muted;
break;
case "volume":
volume_scale.set_value (default_device.volume);
Expand Down

0 comments on commit 6e2bda9

Please sign in to comment.