Consistent naming, some bug fixes

This commit is contained in:
ChrisTerBeke 2019-07-29 17:24:10 +02:00
parent ddd282eef3
commit 1aa70748af
6 changed files with 70 additions and 132 deletions

View file

@ -13,7 +13,7 @@ from .Models.ClusterMaterial import ClusterMaterial
from .Models.LocalMaterial import LocalMaterial
if TYPE_CHECKING:
from .Network.LocalClusterOutputDevice import LocalClusterOutputDevice
from .Network.NetworkOutputDevice import NetworkOutputDevice
## Asynchronous job to send material profiles to the printer.
@ -21,9 +21,9 @@ if TYPE_CHECKING:
# This way it won't freeze up the interface while sending those materials.
class SendMaterialJob(Job):
def __init__(self, device: "LocalClusterOutputDevice") -> None:
def __init__(self, device: "NetworkOutputDevice") -> None:
super().__init__()
self.device = device # type: LocalClusterOutputDevice
self.device = device # type: NetworkOutputDevice
## Send the request to the printer and register a callback
def run(self) -> None: