diff --git a/data/eu.callcc.audrey.gschema.xml b/data/eu.callcc.audrey.gschema.xml index ba0ae72..a68f494 100644 --- a/data/eu.callcc.audrey.gschema.xml +++ b/data/eu.callcc.audrey.gschema.xml @@ -1,5 +1,11 @@ + + false + + + 100 + diff --git a/src/ui/window.rs b/src/ui/window.rs index b16ee93..03861b4 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -170,6 +170,10 @@ mod imp { fn constructed(&self) { self.parent_constructed(); + let settings = gio::Settings::new(crate::APP_ID); + settings.bind("mute", self.obj().as_ref(), "mute").build(); + settings.bind("volume", self.obj().as_ref(), "volume").build(); + // update time-pos every 100 ms let window = self.obj().downgrade(); self.time_pos_notify_timeout