From 96b31a450998aca2b7ac94138b07223418d2bacd Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Fri, 11 Apr 2025 13:25:10 +0200 Subject: [PATCH] fix(client_utils): simplify RPC client instantiation in BECGuiClient --- bec_widgets/cli/client_utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bec_widgets/cli/client_utils.py b/bec_widgets/cli/client_utils.py index 2782a01c..fb90deba 100644 --- a/bec_widgets/cli/client_utils.py +++ b/bec_widgets/cli/client_utils.py @@ -291,13 +291,11 @@ class BECGuiClient(RPCBase): self.start(wait=True) if wait: with wait_for_server(self): - rpc_client = RPCBase(gui_id=f"{self._gui_id}:launcher", parent=self) - widget = rpc_client._run_rpc( + widget = self.launcher._run_rpc( "launch", "dock_area", name, geometry ) # pylint: disable=protected-access return widget - rpc_client = RPCBase(gui_id=f"{self._gui_id}:launcher", parent=self) - widget = rpc_client._run_rpc( + widget = self.launcher._run_rpc( "new_dock_area", name, geometry ) # pylint: disable=protected-access return widget