0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

WIP cli server fix for RPC=False

This commit is contained in:
2025-04-07 14:31:01 +02:00
parent 98a46403f0
commit ad30b5c970

View File

@ -167,7 +167,9 @@ class CLIServer:
# 1) Gather ALL BECConnector-based widgets
all_qwidgets = QApplication.allWidgets()
bec_widgets = set(w for w in all_qwidgets if isinstance(w, BECConnector))
bec_widgets = {c for c in bec_widgets if c.RPC is not False} # FIXME not needed
bec_widgets = {
c for c in bec_widgets if not (hasattr(c, "RPC") and c.RPC is False)
} # FIXME not needed
# 2) Also gather BECConnector-based data items from PlotBase
# TODO do we need to access plot data items in cli in namespace?