We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8261fc6 commit caa70f3Copy full SHA for caa70f3
1 file changed
src/AppRow.vala
@@ -64,11 +64,6 @@ public class Sound.AppRow : Gtk.Grid {
64
});
65
66
icon_button.clicked.connect (() => toggle_mute_application ());
67
-
68
- mute_switch.state_set.connect ((state) => {
69
- toggle_mute_application (!state);
70
- return true;
71
- });
72
}
73
74
private void toggle_mute_application (bool? custom = null) {
@@ -116,6 +111,12 @@ public class Sound.AppRow : Gtk.Grid {
116
111
visible = app.hidden;
117
112
118
113
volume_scale.set_value (app.volume);
114
+ mute_switch.set_active (!app.muted);
115
+
+ mute_switch.state_set.connect ((state) => {
+ toggle_mute_application (!state);
+ return true;
119
+ });
120
121
122
public void unbind_app () {
0 commit comments