Skip to content

Commit 57c8cba

Browse files
committed
Correct sense of FreeCAD test
1 parent 0454782 commit 57c8cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addonmanager_toolbar_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ToolbarAdapter:
2525
def __init__(self):
2626
if self.params is None:
2727
self.params = fci.ParamGet("User parameter:BaseApp/Workbench/Global/Toolbar")
28-
if fci.FreeCAD is not None:
28+
if fci.FreeCAD is None:
2929
raise RuntimeError("ToolbarAdapter can only be used when run from within FreeCAD")
3030

3131
def get_toolbars(self):

0 commit comments

Comments
 (0)