From 3d2b889d7e1d9bb41d76155b4e63717349c3f050 Mon Sep 17 00:00:00 2001 From: Core447 Date: Tue, 12 Mar 2024 19:48:56 +0100 Subject: [PATCH] Fix: using old set_key method instead of set_media --- actions/RecPlayPause/RecPlayPause.py | 2 +- actions/ToggleRecord/ToggleRecord.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/RecPlayPause/RecPlayPause.py b/actions/RecPlayPause/RecPlayPause.py index e00edc3..8313002 100644 --- a/actions/RecPlayPause/RecPlayPause.py +++ b/actions/RecPlayPause/RecPlayPause.py @@ -55,7 +55,7 @@ class RecPlayPause(OBSActionBase): else: self.set_bottom_label(None) - self.set_key(media_path=os.path.join(self.plugin_base.PATH, "assets", image)) + self.set_media(media_path=os.path.join(self.plugin_base.PATH, "assets", image)) def on_key_down(self): if not self.plugin_base.backend.get_connected(): diff --git a/actions/ToggleRecord/ToggleRecord.py b/actions/ToggleRecord/ToggleRecord.py index 6852cd5..bd12805 100644 --- a/actions/ToggleRecord/ToggleRecord.py +++ b/actions/ToggleRecord/ToggleRecord.py @@ -57,7 +57,7 @@ class ToggleRecord(OBSActionBase): self.show_rec_time() image = "record_resume.png" - self.set_key(media_path=os.path.join(self.plugin_base.PATH, "assets", image)) + self.set_media(media_path=os.path.join(self.plugin_base.PATH, "assets", image)) def on_key_down(self): if not self.plugin_base.backend.get_connected(): @@ -69,11 +69,11 @@ class ToggleRecord(OBSActionBase): def show_rec_time(self): if not self.plugin_base.backend.get_connected(): - self.set_key(media_path=os.path.join(self.plugin_base.PATH, "assets", "error.png")) + self.set_media(media_path=os.path.join(self.plugin_base.PATH, "assets", "error.png")) return status = self.plugin_base.backend.get_record_status() if status is None: - self.set_key(media_path=os.path.join(self.plugin_base.PATH, "assets", "error.png")) + self.set_media(media_path=os.path.join(self.plugin_base.PATH, "assets", "error.png")) return if not status["active"]: self.set_bottom_label(None)