mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:49:03 +08:00
CURA-5128 Change method name to be more clear.
Remove a line introduced by mistake in previous commit.
This commit is contained in:
parent
bc5881fe1d
commit
6dc416e180
@ -170,7 +170,6 @@ class MachineErrorChecker(QObject):
|
||||
self._application.callLater(self._checkStack)
|
||||
|
||||
def _setResult(self, result: bool):
|
||||
return
|
||||
if result != self._has_errors:
|
||||
self._has_errors = result
|
||||
self.hasErrorUpdated.emit()
|
||||
|
@ -286,7 +286,7 @@ class FlavorParser:
|
||||
extruder.getProperty("machine_nozzle_offset_y", "value")]
|
||||
return result
|
||||
|
||||
def processGCodeFile(self, stream):
|
||||
def processGCodeStream(self, stream):
|
||||
Logger.log("d", "Preparing to load GCode")
|
||||
self._cancelled = False
|
||||
# We obtain the filament diameter from the selected printer to calculate line widths
|
||||
|
@ -45,7 +45,7 @@ class GCodeReader(MeshReader):
|
||||
return self.preReadFromStream(file_data, args, kwargs)
|
||||
|
||||
def readFromStream(self, stream):
|
||||
return self._flavor_reader.processGCodeFile(stream)
|
||||
return self._flavor_reader.processGCodeStream(stream)
|
||||
|
||||
def read(self, file_name):
|
||||
with open(file_name, "r", encoding = "utf-8") as file:
|
||||
|
Loading…
x
Reference in New Issue
Block a user