From baef3e60470e0a905cdfbed992b4f9b94495fa03 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:53:53 +0200 Subject: [PATCH] Tux: remove obsolete pythonToolbars function --- src/Mod/Tux/PersistentToolbarsGui.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Mod/Tux/PersistentToolbarsGui.py b/src/Mod/Tux/PersistentToolbarsGui.py index 64a0693ca0..de612c694b 100644 --- a/src/Mod/Tux/PersistentToolbarsGui.py +++ b/src/Mod/Tux/PersistentToolbarsGui.py @@ -29,21 +29,6 @@ timer = QtCore.QTimer() mw = Gui.getMainWindow() -def pythonToolbars(): - """Manage Python based toolbar in BIM workbench.""" - - active = Gui.activeWorkbench().__class__.__name__ - - if active == "BIMWorkbench" and hasattr(Gui, "Snapper"): - try: - Gui.Snapper.show() - except Exception: - m = "Persistent toolbars: Snapper toolbar not managed.\n" - App.Console.PrintMessage(m) - else: - pass - - def isConnected(i): """Connect toolbar to onSave function.""" @@ -228,7 +213,6 @@ def onWorkbenchActivated(): active = Gui.activeWorkbench().__class__.__name__ if active: - pythonToolbars() onRestore(active) else: pass