mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Fix gcode.gz double extension problem on Mac
CURA-5228
This commit is contained in:
parent
1b173e8119
commit
fa90fcf18e
3 changed files with 14 additions and 8 deletions
|
@ -1,21 +1,24 @@
|
|||
# Copyright (c) 2018 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from UM.i18n import i18nCatalog
|
||||
from UM.Platform import Platform
|
||||
|
||||
from . import GCodeGzReader
|
||||
|
||||
from UM.i18n import i18nCatalog
|
||||
i18n_catalog = i18nCatalog("cura")
|
||||
|
||||
def getMetaData():
|
||||
file_extension = "gz" if Platform.isOSX() else "gcode.gz"
|
||||
return {
|
||||
"mesh_reader": [
|
||||
{
|
||||
"extension": "gcode.gz",
|
||||
"extension": file_extension,
|
||||
"description": i18n_catalog.i18nc("@item:inlistbox", "Compressed G-code File")
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
def register(app):
|
||||
app.addNonSliceableExtension(".gcode.gz")
|
||||
app.addNonSliceableExtension(".gz")
|
||||
return { "mesh_reader": GCodeGzReader.GCodeGzReader() }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue