Skip to content

Commit b26a9af

Browse files
authored
Merge pull request #87 from ryanbugden/master
Support removing with delete key, justify buttons
2 parents 46d38bc + 4847e71 commit b26a9af

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

source/lib/batch.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ def build(self, sources=[]):
122122
)
123123
),
124124
sourcesAddOpenUFOsButton=dict(
125-
gravity="leading",
125+
gravity="trailing",
126126
),
127127
sourcesAddOpenDesignspacesButton=dict(
128-
gravity="leading",
128+
gravity="trailing",
129129
),
130130
help=dict(
131131
gravity="leading",
@@ -180,6 +180,11 @@ def sourcesAddRemoveButtonRemoveCallback(self, sender):
180180
# remove selected items
181181
table = self.w.getItem("sources")
182182
table.removeSelectedItems()
183+
184+
def sourcesDeleteCallback(self, sender):
185+
# remove selected items
186+
table = self.w.getItem("sources")
187+
table.removeSelectedItems()
183188

184189
def sourcesAddOpenUFOsButtonCallback(self, sender):
185190
# add open ufo's only when they are saved on disk

source/lib/batchGenerators/variableFontsGenerator/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,8 @@ def build(root, generateOptions, settings, progress, report):
492492
for binaryFormat, postProcessCallback in binaryFormats:
493493
binaryExtention = binaryFormat.split("-")[0]
494494

495-
fileName = f"{name}.{binaryExtention}"
495+
suffix = settings["variableFontsSuffix"]
496+
fileName = f"{name}{suffix}.{binaryExtention}"
496497
tempFileName = f"temp_{fileName}"
497498

498499
if settings["batchSettingExportInSubFolders"]:

0 commit comments

Comments
 (0)