Skip to content

Commit

Permalink
Merge pull request #87 from ryanbugden/master
Browse files Browse the repository at this point in the history
Support removing with delete key, justify buttons
  • Loading branch information
typemytype authored Jan 4, 2025
2 parents 46d38bc + 4847e71 commit b26a9af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions source/lib/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ def build(self, sources=[]):
)
),
sourcesAddOpenUFOsButton=dict(
gravity="leading",
gravity="trailing",
),
sourcesAddOpenDesignspacesButton=dict(
gravity="leading",
gravity="trailing",
),
help=dict(
gravity="leading",
Expand Down Expand Up @@ -180,6 +180,11 @@ def sourcesAddRemoveButtonRemoveCallback(self, sender):
# remove selected items
table = self.w.getItem("sources")
table.removeSelectedItems()

def sourcesDeleteCallback(self, sender):
# remove selected items
table = self.w.getItem("sources")
table.removeSelectedItems()

def sourcesAddOpenUFOsButtonCallback(self, sender):
# add open ufo's only when they are saved on disk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ def build(root, generateOptions, settings, progress, report):
for binaryFormat, postProcessCallback in binaryFormats:
binaryExtention = binaryFormat.split("-")[0]

fileName = f"{name}.{binaryExtention}"
suffix = settings["variableFontsSuffix"]
fileName = f"{name}{suffix}.{binaryExtention}"
tempFileName = f"temp_{fileName}"

if settings["batchSettingExportInSubFolders"]:
Expand Down

0 comments on commit b26a9af

Please sign in to comment.