Merge pull request #49 from erAck/fix-odf-extensions

Fix ODF extensions .ods .odt
This commit is contained in:
Micah Lee 2020-03-11 23:30:53 +01:00 committed by GitHub
commit 99dcaf7deb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ class DocSelectionWidget(QtWidgets.QWidget):
filename = QtWidgets.QFileDialog.getOpenFileName(
self,
"Open document",
filter="Documents (*.pdf *.docx *.doc *.docm *.xlsx *.xls *.pptx *.ppt *.odt *.odg *.odp *.ops *.jpg *.jpeg *.gif *.png *.tif *.tiff)",
filter="Documents (*.pdf *.docx *.doc *.docm *.xlsx *.xls *.pptx *.ppt *.odt *.odg *.odp *.ods *.jpg *.jpeg *.gif *.png *.tif *.tiff)",
)
if filename[0] != "":
filename = filename[0]

View file

@ -110,7 +110,7 @@ if p == "Darwin":
"CFBundleTypeRole": "Viewer",
},
{
"CFBundleTypeExtensions": ["odg"],
"CFBundleTypeExtensions": ["odt"],
"CFBundleTypeIconFile": "../macos/document.icns",
"CFBundleTypeMIMETypes": [
"application/vnd.oasis.opendocument.text"
@ -119,7 +119,7 @@ if p == "Darwin":
"CFBundleTypeRole": "Viewer",
},
{
"CFBundleTypeExtensions": ["ops"],
"CFBundleTypeExtensions": ["ods"],
"CFBundleTypeIconFile": "../macos/document.icns",
"CFBundleTypeMIMETypes": [
"application/vnd.oasis.opendocument.spreadsheet"