From 77e8a5c884a603154e8e94b227135de67c5a2032 Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Fri, 28 Feb 2025 01:20:04 +0100 Subject: [PATCH] fix(plot_indicators): cleanup adjusted --- bec_widgets/utils/plot_indicator_items.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bec_widgets/utils/plot_indicator_items.py b/bec_widgets/utils/plot_indicator_items.py index c32a3941..7671b4d6 100644 --- a/bec_widgets/utils/plot_indicator_items.py +++ b/bec_widgets/utils/plot_indicator_items.py @@ -148,10 +148,7 @@ class BECTickItem(BECIndicatorItem): def cleanup(self) -> None: """Cleanup the item""" self.remove_from_plot() - if self.tick_item is not None: - self.tick_item.close() - self.tick_item.deleteLater() - self.tick_item = None + self.tick_item = None class BECArrowItem(BECIndicatorItem):