From e3c448caa6e58072ec38102c3bcc4392293bc166 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Sun, 24 Aug 2025 17:04:21 +0200 Subject: [PATCH] Add import init_draft_statusbar to 2 other functions --- src/Mod/Draft/draftutils/params.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Draft/draftutils/params.py b/src/Mod/Draft/draftutils/params.py index 3783d296b9..7d7adfaa9f 100644 --- a/src/Mod/Draft/draftutils/params.py +++ b/src/Mod/Draft/draftutils/params.py @@ -136,12 +136,16 @@ def _param_observer_callback_snapbar(value): def _param_observer_callback_snapwidget(): + # import has to happen here to avoid circular imports + from draftutils import init_draft_statusbar if Gui.activeWorkbench().name() == "DraftWorkbench": init_draft_statusbar.hide_draft_statusbar() init_draft_statusbar.show_draft_statusbar() def _param_observer_callback_scalewidget(): + # import has to happen here to avoid circular imports + from draftutils import init_draft_statusbar if Gui.activeWorkbench().name() == "DraftWorkbench": init_draft_statusbar.hide_draft_statusbar() init_draft_statusbar.show_draft_statusbar()