From 63cc5f280d5541c8609c282a8f5a9690bf2b4ab1 Mon Sep 17 00:00:00 2001 From: Core447 Date: Tue, 26 Mar 2024 15:29:08 +0100 Subject: [PATCH] Fix: Status label not loading status on load --- OBSActionBase.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OBSActionBase.py b/OBSActionBase.py index 64dee0b..b1f9193 100644 --- a/OBSActionBase.py +++ b/OBSActionBase.py @@ -74,7 +74,10 @@ class OBSActionBase(ActionBase): port=self.plugin_base.get_settings().get("port"), password=self.plugin_base.get_settings().get("password"), timeout=3, legacy=False) - + + self.update_status_label() + + def update_status_label(self) -> None: if self.plugin_base.backend.get_connected(): self.status_label.set_label(self.plugin_base.lm.get("actions.base.status.connected")) self.status_label.remove_css_class("red") @@ -85,4 +88,5 @@ class OBSActionBase(ActionBase): self.status_label.add_css_class("red") def get_custom_config_area(self): + self.update_status_label() return self.status_label \ No newline at end of file