Tux: remove obsolete pythonToolbars function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user