Skip to content

Commit 1907d01

Browse files
committed
support older vanilla api
1 parent d193eeb commit 1907d01

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Batch.roboFontExt/lib/toolBox.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ def __init__(self):
143143
),
144144
]
145145

146-
self.w.addToolbar(toolbarIdentifier="ToolBoxToolbar", toolbarItems=toolbarItems, addStandardItems=False, toolbarStyle="preference")
146+
self.w.addToolbar(toolbarIdentifier="ToolBoxToolbar", toolbarItems=toolbarItems, addStandardItems=False)
147+
# some older RF have older vanilla with no support for toolbarStyle
148+
if hasattr(self.w, "setToolbarStyle"):
149+
self.w.setToolbarStyle("preference")
147150

148151
y = 10
149152

0 commit comments

Comments
 (0)