@@ -100,19 +100,19 @@ class DraftWorkbench(FreeCADGui.Workbench):
|
||||
|
||||
# Set up toolbars
|
||||
it.init_toolbar(self,
|
||||
QT_TRANSLATE_NOOP("Workbench", "Draft creation tools"),
|
||||
QT_TRANSLATE_NOOP("Workbench", "Draft Creation"),
|
||||
self.drawing_commands)
|
||||
it.init_toolbar(self,
|
||||
QT_TRANSLATE_NOOP("Workbench", "Draft annotation tools"),
|
||||
QT_TRANSLATE_NOOP("Workbench", "Draft Annotation"),
|
||||
self.annotation_commands)
|
||||
it.init_toolbar(self,
|
||||
QT_TRANSLATE_NOOP("Workbench", "Draft modification tools"),
|
||||
QT_TRANSLATE_NOOP("Workbench", "Draft Modification"),
|
||||
self.modification_commands)
|
||||
it.init_toolbar(self,
|
||||
QT_TRANSLATE_NOOP("Workbench", "Draft utility tools"),
|
||||
QT_TRANSLATE_NOOP("Workbench", "Draft Utility"),
|
||||
self.utility_commands_toolbar)
|
||||
it.init_toolbar(self,
|
||||
QT_TRANSLATE_NOOP("Workbench", "Draft snap"),
|
||||
QT_TRANSLATE_NOOP("Workbench", "Draft Snap"),
|
||||
it.get_draft_snap_commands())
|
||||
|
||||
# Set up menus
|
||||
|
||||
@@ -1499,7 +1499,7 @@ class Snapper:
|
||||
"""Get the snap toolbar."""
|
||||
if not (hasattr(self, "toolbar") and self.toolbar):
|
||||
mw = Gui.getMainWindow()
|
||||
self.toolbar = mw.findChild(QtWidgets.QToolBar, "Draft snap")
|
||||
self.toolbar = mw.findChild(QtWidgets.QToolBar, "Draft Snap")
|
||||
if self.toolbar:
|
||||
return self.toolbar
|
||||
|
||||
|
||||
@@ -238,7 +238,7 @@ def init_draft_statusbar_snap():
|
||||
|
||||
# check if the toolbar is available, without it the required actions
|
||||
# may be missing:
|
||||
if mw.findChild(QtWidgets.QToolBar, "Draft snap") is None:
|
||||
if mw.findChild(QtWidgets.QToolBar, "Draft Snap") is None:
|
||||
return
|
||||
|
||||
# snap widget:
|
||||
|
||||
Reference in New Issue
Block a user