Skip to content

Commit

Permalink
fix: incorrect pixmap used in CAM workbench. #40
Browse files Browse the repository at this point in the history
  • Loading branch information
knipknap committed Oct 13, 2024
1 parent b1cbf9a commit 2594eb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions btl/ui/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

FreeCADGui.addLanguagePath(translations_dir)
ICON_FILE = os.path.join(icon_dir, 'tool-library.svg')
HAS_CAM = 'CAMWorkbench' in FreeCADGui.listWorkbenches()
TOOLBAR_NAME = "btl_toolbar"

class OpenBTL:
"""Opens the Better Tool Library dialog."""

def GetResources(self):
wb = 'CAM' if HAS_CAM else 'Path'
has_cam = 'CAMWorkbench' in FreeCADGui.listWorkbenches()
wb = 'CAM' if has_cam else 'Path'
return {
'Pixmap': f'{wb}_ToolTable',
'Accel': "P, T",
Expand Down

0 comments on commit 2594eb9

Please sign in to comment.