Skip to content

Commit ef5bfda

Browse files
committed
add woff and woff2 filters to open file and save file dialogs
1 parent 3aad5cc commit ef5bfda

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/slice/ui/dialogs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def __init__(self):
4545
self,
4646
"Open File",
4747
self.root_directory,
48-
"All Files (*);;ttf Files(*.ttf);;otf Files (*.otf)",
48+
"All Files (*);;ttf Files(*.ttf);;otf Files (*.otf);;"
49+
"woff Files (*.woff);;woff2 Files (*.woff2)",
4950
options=self.Options(),
5051
)
5152

@@ -74,7 +75,8 @@ def __init__(self, root_directory=None):
7475
self,
7576
"Save File",
7677
self.root_directory,
77-
"All Files (*);;ttf Files(*.ttf);;otf Files (*.otf)",
78+
"All Files (*);;ttf Files(*.ttf);;otf Files (*.otf);;"
79+
"woff Files (*.woff);;woff2 Files (*.woff2)",
7880
options=self.Options(),
7981
)
8082

0 commit comments

Comments
 (0)