Skip to content

Commit

Permalink
Allow .3mf file selection for orcaslicer compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ansonl committed Feb 16, 2025
1 parent f0c1607 commit 05f4cfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def create_widgets(self):
gcodeFlavorComboBox.grid(row=0, column=1, sticky=tk.EW, padx=10, pady=10)

def selectImportGcodeFile():
fn = select_open_file([('All supported files', '.gcode .gcode.3mf'), ('G-code', '*.gcode'), ('Plate Sliced 3MF', '*.gcode.3mf')])
fn = select_open_file([('All supported files', '.gcode .gcode.3mf .3mf'), ('G-code', '*.gcode'), ('Plate Sliced 3MF', '*.gcode.3mf'), ('3MF', '*.3mf')])
if fn:
importGcodeButton.config(text=truncateMiddleLength(fn, 50))
exportFn = addExportToFilename(fn)
Expand Down
2 changes: 1 addition & 1 deletion src/mfm/plate_sliced.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def processAllPlateGcodeForZipFile(inputZip: zipfile.ZipFile, out: typing.TextIO

if statusQueue:
sqItem = StatusQueueItem()
sqItem.statusRight = f"Completed all {platesProcessed} plate sliced gcode{'s' if platesProcessed > 0 else ''} in {str(datetime.timedelta(seconds=time.monotonic()-startTime))}s" if platesProcessed > 0 else "Did not find plate sliced gcode"
sqItem.statusRight = f"Completed all {platesProcessed} plate sliced G-code{'s' if platesProcessed > 0 else ''} in {str(datetime.timedelta(seconds=time.monotonic()-startTime))}s" if platesProcessed > 0 else "Did not find any plate sliced G-code to process."
sqItem.progress = 100
statusQueue.put(item=sqItem)

Expand Down

0 comments on commit 05f4cfd

Please sign in to comment.