Tux: remove obsolete pythonToolbars function

This commit is contained in:
Roy-043
2025-10-13 18:53:53 +02:00
committed by Kacper Donat
parent a0c28aba75
commit baef3e6047

View File

@@ -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