diff --git a/src/ui/window.rs b/src/ui/window.rs index 4301153..5a75107 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -83,9 +83,6 @@ mod imp { mpv.set_property("vid", false).unwrap(); mpv.set_property("prefetch-playlist", true).unwrap(); - mpv.observe_property(0, "volume").unwrap(); - mpv.observe_property(1, "mute").unwrap(); - mpv.observe_property(2, "pause").unwrap(); mpv.observe_property(3, "playlist-pos").unwrap(); mpv.observe_property(4, "idle-active").unwrap(); mpv.observe_property(6, "playlist-count").unwrap(); @@ -420,21 +417,6 @@ mod imp { fn on_property_change(&self, event: crate::mpv::event::PropertyEvent) { match event.reply_userdata { - 0 => { - assert_eq!(event.name, "volume"); - self.obj().notify("volume"); - } - - 1 => { - assert_eq!(event.name, "mute"); - self.obj().notify("mute"); - } - - 2 => { - assert_eq!(event.name, "pause"); - self.obj().notify("pause"); - } - 3 => { assert_eq!(event.name, "playlist-pos"); self.obj().notify("playlist-pos");