From a1a400f5409213ee1ab2f7cc9f8da7a2b612972d Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 3 Feb 2026 13:20:46 +0100 Subject: [PATCH] fix: address copilot review --- .../views/device_manager_view/device_manager_view.py | 2 +- bec_widgets/utils/guided_tour.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bec_widgets/applications/views/device_manager_view/device_manager_view.py b/bec_widgets/applications/views/device_manager_view/device_manager_view.py index edc8e00a..d8a71501 100644 --- a/bec_widgets/applications/views/device_manager_view/device_manager_view.py +++ b/bec_widgets/applications/views/device_manager_view/device_manager_view.py @@ -99,7 +99,7 @@ class DeviceManagerView(ViewBase): 1: "Shows if a device is connectable. Validated on demand.", 2: "Device name, unique across all devices within a config.", 3: "Device class used to initialize the device on the BEC server.", - 4: "Defines how BEC treats readings of the device during scans. The options are 'monitored', 'baseline', ' async', 'continuous' or 'on_demand'.", + 4: "Defines how BEC treats readings of the device during scans. The options are 'monitored', 'baseline', 'async', 'continuous' or 'on_demand'.", 5: "Defines how BEC reacts if a device readback fails. Options are 'raise', 'retry', or 'buffer'.", 6: "User-defined tags associated with the device.", 7: "A brief description of the device.", diff --git a/bec_widgets/utils/guided_tour.py b/bec_widgets/utils/guided_tour.py index 739acf11..880d9e8b 100644 --- a/bec_widgets/utils/guided_tour.py +++ b/bec_widgets/utils/guided_tour.py @@ -16,7 +16,6 @@ from qtpy.QtGui import QAction, QColor, QKeySequence, QPainter, QPen, QShortcut from qtpy.QtWidgets import ( QAbstractItemView, QApplication, - QDialogButtonBox, QFrame, QHBoxLayout, QLabel, @@ -24,7 +23,6 @@ from qtpy.QtWidgets import ( QMenu, QMenuBar, QPushButton, - QSizePolicy, QTableWidgetItem, QToolBar, QVBoxLayout, @@ -308,7 +306,7 @@ class GuidedTour(QObject): widget_ref = _resolve_toolbar_button default_title = getattr(widget, "tooltip", "Toolbar Menu") elif isinstance(widget, QRect): - widget_ref = saferef.safe_ref(widget) + widget_ref = widget default_title = "Area" else: widget_ref = saferef.safe_ref(widget)