chiark / gitweb /
Add printWindow2, the new printerConnection based print window.
[cura.git] / Cura / util / printerConnection / doodle3dConnect.py
index c002c6b1455f6b3a5814deb4ddaf1de5b9563a61..5fa69f6434ade877a48a176986d3442290896367 100644 (file)
@@ -35,7 +35,7 @@ class doodle3dConnect(printerConnectionBase.printerConnectionBase):
        #Load the file into memory for printing.
        def loadFile(self, filename):
                if self._printing:
-                       return
+                       return False
                self._fileBlocks = []
                self._lineCount = 0
                block = []
@@ -60,6 +60,8 @@ class doodle3dConnect(printerConnectionBase.printerConnectionBase):
                        block.append(line)
                self._fileBlocks.append('\n'.join(block) + '\n')
                f.close()
+               self._doCallback()
+               return True
 
        #Start printing the previously loaded file
        def startPrint(self):