Draft: toolbar names to title case

This was  missed in #22331.
This commit is contained in:
Roy-043
2025-08-10 18:30:16 +02:00
committed by Max Wilfinger
parent 648cefd0e6
commit 7e986d85f5
3 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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