From 7bf7fa5b7c4640824cd44f150e5fbff8a86d1786 Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Thu, 6 Mar 2025 11:09:30 +0100 Subject: [PATCH] fix(plot_base): enable popup property fixed --- bec_widgets/widgets/plots_next_gen/plot_base.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/bec_widgets/widgets/plots_next_gen/plot_base.py b/bec_widgets/widgets/plots_next_gen/plot_base.py index 6d618860..b91a1c36 100644 --- a/bec_widgets/widgets/plots_next_gen/plot_base.py +++ b/bec_widgets/widgets/plots_next_gen/plot_base.py @@ -321,22 +321,7 @@ class PlotBase(BECWidget, QWidget): Args: value(bool): The value to set. """ - if value: - # Disable popup mode - if self._popups: - # Directly update the internal flag to avoid recursion - self._popups = False - # Hide the popup bundle if it exists and close any open dialogs - if self.popup_bundle is not None: - for action in self.toolbar.bundles["popup_bundle"].actions: - action.setVisible(False) - if self.axis_settings_dialog is not None and self.axis_settings_dialog.isVisible(): - self.axis_settings_dialog.close() - self.side_panel.show() - # Add side menus if not already added - self.add_side_menus() - else: - self.side_panel.hide() + self.toolbar.setVisible(value) @SafeProperty(bool, doc="Enable the FPS monitor.") def enable_fps_monitor(self) -> bool: