From a0be95189b252f759aacb87fefba0ea29f803d64 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sun, 10 Nov 2024 15:54:47 +0100 Subject: [PATCH] remove volume, mute, pause watches these shouldn't even change from the mpv side anyways --- src/ui/window.rs | 18 ------------------ 1 file changed, 18 deletions(-) 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");