Check if self._comm is None before trying to select a file...
(cherry picked from commit 5631a45
)
master
parent
456eb8cb47
commit
481a750cf6
|
@ -175,7 +175,7 @@ class Printer():
|
|||
self._comm.sendCommand(command)
|
||||
|
||||
def selectFile(self, filename, sd, printAfterSelect=False):
|
||||
if self._comm is not None and (self._comm.isBusy() or self._comm.isStreaming()):
|
||||
if self._comm is None or (self._comm.isBusy() or self._comm.isStreaming()):
|
||||
return
|
||||
|
||||
self._printAfterSelect = printAfterSelect
|
||||
|
|
Loading…
Reference in New Issue